direct: use correct repo for default branch

This commit is contained in:
2025-11-10 10:24:33 +01:00
parent f310220261
commit 6afb18fc58

View File

@@ -285,8 +285,10 @@ next_package:
git.GitExecOrPanic(gitPrj, "rm", filename)
isGitUpdated = true
continue
}
if len(branch) == 0 {
} else if err != nil {
common.LogError("failed fetching repo data", org, filename, err)
continue
} else if len(branch) == 0 {
branch = repo.DefaultBranch
common.LogDebug(" -> using default branch", branch)
if common.IsRemovedBranch(branch) {