direct: use correct repo for default branch
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user