Re-fixed workflow imports with master branch

This commit is contained in:
frikky
2020-10-26 11:22:15 +01:00
parent 63e5d82637
commit ca798de0cd
2 changed files with 8 additions and 5 deletions
+2 -2
View File
@@ -6710,7 +6710,7 @@ func runInit(ctx context.Context) {
}
}
branch := os.Getenv("SHUFFLE_DOWNLOAD_AUTH_BRANCH")
if len(branch) > 0 {
if len(branch) > 0 && branch != "master" && branch != "main" {
cloneOptions.ReferenceName = plumbing.ReferenceName(branch)
}
@@ -6719,7 +6719,7 @@ func runInit(ctx context.Context) {
r, err := git.Clone(storer, fs, cloneOptions)
if err != nil {
log.Printf("Failed loading repo into memory: %s", err)
log.Printf("Failed loading repo into memory (init): %s", err)
}
dir, err := fs.ReadDir("")