diff --git a/Scripts/clean-repo.ps1 b/Scripts/clean-repo.ps1 index bc3810dd..a2b23556 100755 --- a/Scripts/clean-repo.ps1 +++ b/Scripts/clean-repo.ps1 @@ -27,7 +27,7 @@ try { "⏳ Step 2/4 - Checking folder 📂$RepoDirName..." if (-not(Test-Path "$RepoDir" -pathType container)) { throw "Can't access folder '$RepoDir' - maybe a typo or missing folder permissions?" } - "⏳ Step 3/4 - Cleaning Git repository..." + "⏳ Step 3/4 - Cleaning Git repository from untracked files..." & git -C "$RepoDir" clean -xfd -f # to delete all untracked files in the main repo if ($lastExitCode -ne "0") { "'git clean' failed with exit code $lastExitCode, retrying once..." @@ -35,12 +35,12 @@ try { if ($lastExitCode -ne "0") { throw "'git clean' failed with exit code $lastExitCode" } } - "⏳ Step 4/4 - Cleaning Git submodules..." + "⏳ Step 4/4 - Cleaning Git submodules from untracked files..." & git -C "$RepoDir" submodule foreach --recursive git clean -xfd -f # to delete all untracked files in the submodules if ($lastExitCode -ne "0") { throw "'git clean' in the submodules failed with exit code $lastExitCode" } [int]$Elapsed = $StopWatch.Elapsed.TotalSeconds - "✔️ cleaned Git repo 📂$RepoDirName in $Elapsed sec" + "✔️ cleaned 📂$RepoDirName repo in $Elapsed sec" exit 0 # success } catch { "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" diff --git a/Scripts/switch-branch.ps1 b/Scripts/switch-branch.ps1 index 2a4db1c3..d70f8ebf 100755 --- a/Scripts/switch-branch.ps1 +++ b/Scripts/switch-branch.ps1 @@ -29,7 +29,7 @@ try { $RepoDir = Resolve-Path "$RepoDir" $RepoDirName = (Get-Item "$RepoDir").Name - "⏳ Step 2/6 - Checking Git repository 📂$RepoDirName..." + "⏳ Step 2/6 - Checking folder 📂$RepoDirName..." if (-not(Test-Path "$RepoDir" -pathType container)) { throw "Can't access directory: $RepoDir" } $Result = (git status)