File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -27,20 +27,20 @@ try {
27
27
" ⏳ Step 2/4 - Checking folder 📂$RepoDirName ..."
28
28
if (-not (Test-Path " $RepoDir " - pathType container)) { throw " Can't access folder '$RepoDir ' - maybe a typo or missing folder permissions?" }
29
29
30
- " ⏳ Step 3/4 - Cleaning Git repository..."
30
+ " ⏳ Step 3/4 - Cleaning Git repository from untracked files ..."
31
31
& git - C " $RepoDir " clean - xfd -f # to delete all untracked files in the main repo
32
32
if ($lastExitCode -ne " 0" ) {
33
33
" 'git clean' failed with exit code $lastExitCode , retrying once..."
34
34
& git - C " $RepoDir " clean - xfd -f
35
35
if ($lastExitCode -ne " 0" ) { throw " 'git clean' failed with exit code $lastExitCode " }
36
36
}
37
37
38
- " ⏳ Step 4/4 - Cleaning Git submodules..."
38
+ " ⏳ Step 4/4 - Cleaning Git submodules from untracked files ..."
39
39
& git - C " $RepoDir " submodule foreach -- recursive git clean - xfd -f # to delete all untracked files in the submodules
40
40
if ($lastExitCode -ne " 0" ) { throw " 'git clean' in the submodules failed with exit code $lastExitCode " }
41
41
42
42
[int ]$Elapsed = $StopWatch.Elapsed.TotalSeconds
43
- " ✔️ cleaned Git repo 📂$RepoDirName in $Elapsed sec"
43
+ " ✔️ cleaned 📂$RepoDirName repo in $Elapsed sec"
44
44
exit 0 # success
45
45
} catch {
46
46
" ⚠️ Error in line $ ( $_.InvocationInfo.ScriptLineNumber ) : $ ( $Error [0 ]) "
Original file line number Diff line number Diff line change 29
29
30
30
$RepoDir = Resolve-Path " $RepoDir "
31
31
$RepoDirName = (Get-Item " $RepoDir " ).Name
32
- " ⏳ Step 2/6 - Checking Git repository 📂$RepoDirName ..."
32
+ " ⏳ Step 2/6 - Checking folder 📂$RepoDirName ..."
33
33
if (-not (Test-Path " $RepoDir " - pathType container)) { throw " Can't access directory: $RepoDir " }
34
34
35
35
$Result = (git status)
You can’t perform that action at this time.
0 commit comments