Improve Start-PSBuild -Clean

Always do the clean in the root folder
This commit is contained in:
Sergei Vorobev 2016-07-25 19:53:21 -07:00
parent 3fd885ef2d
commit bcac0ece62

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