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:
parent
144e873393
commit
d4893c4706
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue