Fix one last case of not skipping hooks when cloning in code analyzer (#36912)
Fix one last case of not skipping hooks when cloning.
This commit is contained in:
parent
ddb675f04b
commit
4b345402ce
|
@ -50,9 +50,12 @@ export const scanForChanges = async (
|
|||
|
||||
// Only checkout the compare version if we're in CLI mode.
|
||||
if ( outputStyle === 'cli' ) {
|
||||
execSync( `cd ${ tmpRepoPath } && git checkout ${ compareVersion }`, {
|
||||
stdio: 'pipe',
|
||||
} );
|
||||
execSync(
|
||||
`cd ${ tmpRepoPath } && git -c core.hooksPath=/dev/null checkout ${ compareVersion }`,
|
||||
{
|
||||
stdio: 'pipe',
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
const pluginPath = join( tmpRepoPath, 'plugins/woocommerce' );
|
||||
|
|
Loading…
Reference in New Issue