diff --git a/lib/util/git/index.ts b/lib/util/git/index.ts index f642a7ecaa777a..4b6a5bf453124a 100644 --- a/lib/util/git/index.ts +++ b/lib/util/git/index.ts @@ -199,7 +199,9 @@ async function fetchBranchCommits(): Promise { ); } try { - (await gitRetry(() => git.raw(opts))) + const lsRemoteRes = await gitRetry(() => git.raw(opts)); + logger.trace({ lsRemoteRes }, 'git ls-remote result'); + lsRemoteRes .split(newlineRegex) .filter(Boolean) .map((line) => line.trim().split(regEx(/\s+/))) @@ -207,6 +209,7 @@ async function fetchBranchCommits(): Promise { config.branchCommits[ref.replace('refs/heads/', '')] = sha as LongCommitSha; }); + logger.trace({ branchCommits: config.branchCommits }, 'branch commits'); } catch (err) /* istanbul ignore next */ { const errChecked = checkForPlatformFailure(err); if (errChecked) {