diff --git a/pkg/git/git.go b/pkg/git/git.go index 9dc31246f2d..734a5152859 100644 --- a/pkg/git/git.go +++ b/pkg/git/git.go @@ -119,12 +119,6 @@ func Fetch(logger *zap.SugaredLogger, spec FetchSpec) error { logger.Warnf("Failed to set http.sslVerify in git config: %s", err) return err } - if spec.Revision == "" { - spec.Revision = "HEAD" - if _, err := run(logger, "", "symbolic-ref", spec.Revision, "refs/remotes/origin/HEAD"); err != nil { - return err - } - } fetchArgs := []string{"fetch"} if spec.Submodules {