Improve Start-PSBuild -Clean

Always do the clean in the root folder
This commit is contained in:
Sergei Vorobev
2016-07-26 17:45:49 -07:00
parent 3fd885ef2d
commit bcac0ece62
+9 -1
View File
@@ -89,7 +89,15 @@ function Start-PSBuild {
if ($Clean)
{
log "Cleaning your working directory. You can also do it with 'git clean -fdX'"
git clean -fdX
Push-Location $PSScriptRoot
try
{
git clean -fdX
}
finally
{
Pop-Location
}
}
# save Git description to file for PowerShell to include in PSVersionTable