Skip to content

Commit

Permalink
fix: checkout a branch only once
Browse files Browse the repository at this point in the history
This is the 2nd attempt to fix checkout with symlinks via go-git.

The first `clone` action was checking out `master` branch, and then
switching to the PR branch. This causes issues wigh `go-git`, and we
don't need to checkout `master` branch for real.

Signed-off-by: Andrey Smirnov <andrey.smirnov@talos-systems.com>
  • Loading branch information
smira committed Dec 17, 2021
1 parent f00081b commit 18107a6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/conform/serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ var serveCmd = &cobra.Command{

repo, err := git.PlainClone(cloneRepo, false, &git.CloneOptions{
SingleBranch: false,
NoCheckout: true,
URL: cloneURL,
Progress: os.Stdout,
})
Expand Down

0 comments on commit 18107a6

Please sign in to comment.