diff --git a/internal/vcs/git.go b/internal/vcs/git.go index dd856567da82..25e20c99e8d0 100644 --- a/internal/vcs/git.go +++ b/internal/vcs/git.go @@ -202,8 +202,8 @@ func checkout(rev string, repo *git.Repository) error { if hash, err := repo.ResolveRevision(plumbing.Revision(rev)); err == nil { return wt.Checkout(&git.CheckoutOptions{ - Force: true, Hash: *hash, + Force: true, }) }