From 18107a6d00cf30d420c6ef3a5c14f64efa4f385b Mon Sep 17 00:00:00 2001 From: Andrey Smirnov Date: Fri, 17 Dec 2021 22:33:39 +0300 Subject: [PATCH] fix: checkout a branch only once 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 --- cmd/conform/serve.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/conform/serve.go b/cmd/conform/serve.go index 88a521d9..d8dd04b1 100644 --- a/cmd/conform/serve.go +++ b/cmd/conform/serve.go @@ -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, })