fix: fetch revision only then fallback to default refspec (#5605)
fix: fetch revision only then fallback to default refspec (#5605)

* fix: fallback to fetch default only on error

Ignoring commit SHA breaks gerrit when the commit is not merged

Signed-off-by: Yujun Zhang <31327cca758e709c17dfa1e268b3c5de80746691@nvidia.com>

* revert util/git/client.go changes

Signed-off-by: Alexander Matyushentsev <329929d97ff5ea7c91466c2aa6894d990480f3cf@gmail.com>

Co-authored-by: Alexander Matyushentsev <329929d97ff5ea7c91466c2aa6894d990480f3cf@gmail.com>
argoproj/argo-cd,argoproj/argo-cd,argoproj/argo-cd,argoproj/argo-cd,argoproj/argo-cd