fix: check cache before cloning (#16517)

This commit is contained in:
RahulGautamSingh 2022-07-11 14:28:51 +05:30 committed by GitHub
parent fa17909e8f
commit e10aa6aa5a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -621,8 +621,6 @@ export async function isBranchConflicted(
branch: string
): Promise<boolean> {
logger.debug(`isBranchConflicted(${baseBranch}, ${branch})`);
await syncGit();
await writeGitAuthor();
const baseBranchSha = getBranchCommit(baseBranch);
const branchSha = getBranchCommit(branch);
@ -648,6 +646,8 @@ export async function isBranchConflicted(
}
let result = false;
await syncGit();
await writeGitAuthor();
const origBranch = config.currentBranch;
try {