Start-PSBuild -Clean doeas not remove all untracked files (#10022)

This commit is contained in:
Joel Sallow (/u/ta11ow)
2019-07-01 08:34:36 +05:00
committed by Ilya
parent b34e331d63
commit bf71b2c616
+2 -2
View File
@@ -265,12 +265,12 @@ function Start-PSBuild {
}
if ($Clean) {
Write-Log "Cleaning your working directory. You can also do it with 'git clean -fdx --exclude .vs/PowerShell/v15/Server/sqlite3'"
Write-Log "Cleaning your working directory. You can also do it with 'git clean -fdX --exclude .vs/PowerShell/v15/Server/sqlite3'"
Push-Location $PSScriptRoot
try {
# Excluded sqlite3 folder is due to this Roslyn issue: https://github.com/dotnet/roslyn/issues/23060
# Excluded src/Modules/nuget.config as this is required for release build.
git clean -fdx --exclude .vs/PowerShell/v15/Server/sqlite3 --exclude src/Modules/nuget.config
git clean -fdX --exclude .vs/PowerShell/v15/Server/sqlite3 --exclude src/Modules/nuget.config
} finally {
Pop-Location
}