Update go git (#209)
This commit is contained in:
@@ -63,7 +63,7 @@ func Clone(ctx context.Context, gitRepo string, gitCommit string, targetDir stri
|
||||
return fmt.Errorf("failed to get worktree: %w", err)
|
||||
}
|
||||
err = wt.Checkout(&git.CheckoutOptions{
|
||||
Branch: plumbing.ReferenceName(localBranch),
|
||||
Hash: plumbing.NewHash(gitCommit),
|
||||
})
|
||||
if err != nil {
|
||||
return fmt.Errorf("failed to checkout: %w", err)
|
||||
|
||||
Reference in New Issue
Block a user