mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-12-29 10:09:37 +01:00
Update list-commits-live.ps1
This commit is contained in:
parent
5a5cf939bb
commit
a11c9953b9
@ -28,7 +28,7 @@ try {
|
||||
|
||||
$linePrev = ""
|
||||
for (;;) {
|
||||
& git -C "$RepoDir" fetch --recurse-submodules=no --jobs=1 --quiet
|
||||
& git -C "$RepoDir" fetch --all --recurse-submodules=no --jobs=1 --quiet
|
||||
if ($lastExitCode -ne "0") { throw "'git fetch' failed" }
|
||||
|
||||
$lineNow = (git -C "$RepoDir" log --format=format:'%s by %an%d' -n 1)
|
||||
@ -36,7 +36,7 @@ try {
|
||||
Write-Host "❇️ $lineNow"
|
||||
$linePrev = $lineNow
|
||||
}
|
||||
Start-Sleep -seconds 1
|
||||
Start-Sleep -seconds 10
|
||||
}
|
||||
exit 0 # success
|
||||
} catch {
|
||||
|
Loading…
Reference in New Issue
Block a user