Skip to content

Commit 32948b7

Browse files
committed
(GH-25) Reset files after build process
- As part of the build process, the configuration files for DupFinder and InspectCode are modified, which leaves two pending changes in git. These changes shouldn't be checked in. Once the build has finished, re-checkout these files, to revert them back to their previous state
1 parent 09a995c commit 32948b7

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

BuildScripts/default.ps1

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,10 @@ Task -Name RunInspectCode -Depends __InstallReSharperCommandLineTools -Descripti
449449
if(Test-Path $inspectCodeXmlFile) {
450450
applyXslTransform $inspectCodeXmlFile $inspectCodeXslFile $inspectCodeHtmlFile;
451451
$inspectCodeXmlFile | analyseInspectCodeResults;
452-
}
452+
}
453+
454+
# Reset the inspectcode.config file
455+
git checkout $inspectCodeConfigFile;
453456
}
454457
}
455458

@@ -473,7 +476,10 @@ Task -Name RunDupFinder -Depends __InstallReSharperCommandLineTools -Description
473476
if(Test-Path $dupFinderXmlFile) {
474477
applyXslTransform $dupFinderXmlFile $dupFinderXslFile $dupFinderHtmlFile;
475478
$dupFinderXmlFile | analyseDupFinderResults;
476-
}
479+
}
480+
481+
# Reset the dupfinder.config file
482+
git checkout $dupFinderConfigFile;
477483
}
478484
}
479485

0 commit comments

Comments
 (0)