mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-10 22:16:28 +00:00
fix: check cache before cloning (#16517)
This commit is contained in:
parent
fa17909e8f
commit
e10aa6aa5a
1 changed files with 2 additions and 2 deletions
|
@ -621,8 +621,6 @@ export async function isBranchConflicted(
|
||||||
branch: string
|
branch: string
|
||||||
): Promise<boolean> {
|
): Promise<boolean> {
|
||||||
logger.debug(`isBranchConflicted(${baseBranch}, ${branch})`);
|
logger.debug(`isBranchConflicted(${baseBranch}, ${branch})`);
|
||||||
await syncGit();
|
|
||||||
await writeGitAuthor();
|
|
||||||
|
|
||||||
const baseBranchSha = getBranchCommit(baseBranch);
|
const baseBranchSha = getBranchCommit(baseBranch);
|
||||||
const branchSha = getBranchCommit(branch);
|
const branchSha = getBranchCommit(branch);
|
||||||
|
@ -648,6 +646,8 @@ export async function isBranchConflicted(
|
||||||
}
|
}
|
||||||
|
|
||||||
let result = false;
|
let result = false;
|
||||||
|
await syncGit();
|
||||||
|
await writeGitAuthor();
|
||||||
|
|
||||||
const origBranch = config.currentBranch;
|
const origBranch = config.currentBranch;
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in a new issue