Monorepo Utils: Fix no merge base in changefile script (#39467)

* when checking out remote branch, ensure git history is there to find common ancestor for git diff

* remove unshallow
This commit is contained in:
Paul Sealock 2023-07-28 11:10:29 +12:00 committed by Kyle Nel
parent 144e873393
commit d4893c4706
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ const program = new Command( 'changefile' )
// If a pull request is coming from a contributor's fork's trunk branch, we don't nee to checkout the remote branch because its already available as part of the clone.
if ( branch !== 'trunk' ) {
Logger.notice( `Checking out remote branch ${ branch }` );
await checkoutRemoteBranch( tmpRepoPath, branch );
await checkoutRemoteBranch( tmpRepoPath, branch, false );
}
Logger.notice(