@@ -518,10 +518,6 @@ export async function getTscRepoResult(
518
518
519
519
const buildStart = performance . now ( ) ;
520
520
try {
521
- // Force add all of the ignored files we just installed so we can git clean to go back to this state later.
522
- console . log ( "Staging installed files" ) ;
523
- await execAsync ( repoDir , "git add --force ." ) ;
524
-
525
521
console . log ( `Building with ${ oldTscPath } (old)` ) ;
526
522
const oldErrors = await ge . buildAndGetErrors ( repoDir , monorepoPackages , isUserTestRepo , oldTscPath , executionTimeout , /*skipLibCheck*/ true ) ;
527
523
@@ -562,10 +558,6 @@ export async function getTscRepoResult(
562
558
summary += `**${ oldFailuresMessage } **\n` ;
563
559
}
564
560
565
- console . log ( "Restoring repo to post-install state" ) ;
566
- await execAsync ( repoDir , "git restore ." ) ;
567
- await execAsync ( repoDir , "git clean -xdff" ) ;
568
-
569
561
console . log ( `Building with ${ newTscPath } (new)` ) ;
570
562
const newErrors = await ge . buildAndGetErrors ( repoDir , monorepoPackages , isUserTestRepo , newTscPath , executionTimeout , /*skipLibCheck*/ true ) ;
571
563
@@ -675,11 +667,6 @@ export async function getTscRepoResult(
675
667
return { status : "Unknown failure" } ;
676
668
}
677
669
finally {
678
- console . log ( "Unstaging installed files" ) ;
679
- await execAsync ( repoDir , "git restore ." ) ;
680
- await execAsync ( repoDir , "git clean -xdff" ) ;
681
- await execAsync ( repoDir , "git restore --staged ." ) ;
682
-
683
670
logStepTime ( diagnosticOutput , repo , "build" , buildStart ) ;
684
671
}
685
672
0 commit comments