From e2cecb6952de84e323be027b62860ab4a70a9db4 Mon Sep 17 00:00:00 2001 From: vexx32 <32407840+vexx32@users.noreply.github.com> Date: Thu, 27 Jun 2019 23:15:47 -0400 Subject: [PATCH] :construction: Fix Start-PSBuild -Clean Before we used "git clean -fdx" which also removes all untracked files. This is a bad idea as it can on occasion remove work-in-progress. Instead, -fdX switches will only clean .gitignore'd files. --- build.psm1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.psm1 b/build.psm1 index 1b4559af3f6..554ed1036b2 100644 --- a/build.psm1 +++ b/build.psm1 @@ -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 }