gitopsUpdateDeployment doesn't take into account branchName parameter when clonning a repo. This leads to a bug when specifying branchName other than default (main or master). In that case git clones default branch and then tries to check out to branchName (which doesn't exist in cloned repo) and then creates that branchName from default branch.
This PR fixes this bug by passing branchName into clone function
gitopsUpdateDeployment doesn't take into account branchName parameter when clonning a repo. This leads to a bug when specifying branchName other than default (main or master). In that case git clones default branch and then tries to check out to branchName (which doesn't exist in cloned repo) and then creates that branchName from default branch.
This PR fixes this bug by passing branchName into clone function