Skip to content

Commit 469df53

Browse files
committed
Add trace log to investigate failing compare for some forks
1 parent f11fb8e commit 469df53

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

modules/git/repo_compare.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ func (repo *Repository) GetMergeBase(tmpRemote, base, head string) (string, stri
4242
_, _, err := NewCommand(repo.Ctx, "fetch", "--no-tags").AddDynamicArguments(tmpRemote).AddDashesAndList(base + ":" + tmpBaseName).RunStdString(&RunOpts{Dir: repo.Path})
4343
if err == nil {
4444
base = tmpBaseName
45+
} else {
46+
logger.Trace("GetMergeBase failed to git fetch. Error: %v", err)
4547
}
4648
}
4749

0 commit comments

Comments
 (0)