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) git.GitExecOrPanic(gitPrj, "rm", filename)
isGitUpdated = true isGitUpdated = true
continue continue
} } else if err != nil {
if len(branch) == 0 { common.LogError("failed fetching repo data", org, filename, err)
continue
} else if len(branch) == 0 {
branch = repo.DefaultBranch branch = repo.DefaultBranch
common.LogDebug(" -> using default branch", branch) common.LogDebug(" -> using default branch", branch)
if common.IsRemovedBranch(branch) { if common.IsRemovedBranch(branch) {