mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-04-24 02:48:17 +02:00
Add --jobs=4 to git fetch
This commit is contained in:
parent
55f9c2e19f
commit
e9c4c6415f
@ -23,8 +23,8 @@ try {
|
|||||||
if ($lastExitCode -ne "0") { throw "'git status' failed in $RepoDir" }
|
if ($lastExitCode -ne "0") { throw "'git status' failed in $RepoDir" }
|
||||||
if ("$Result" -notmatch "nothing to commit, working tree clean") { throw "Repository is NOT clean: $Result" }
|
if ("$Result" -notmatch "nothing to commit, working tree clean") { throw "Repository is NOT clean: $Result" }
|
||||||
|
|
||||||
& git fetch --all --recurse-submodules
|
& git fetch --all --recurse-submodules --jobs=4
|
||||||
if ($lastExitCode -ne "0") { throw "'git fetch --all --recurse-submodules' failed" }
|
if ($lastExitCode -ne "0") { throw "'git fetch' failed" }
|
||||||
|
|
||||||
& git checkout -b "$NewBranchName"
|
& git checkout -b "$NewBranchName"
|
||||||
if ($lastExitCode -ne "0") { throw "'git checkout -b $NewBranchName' failed" }
|
if ($lastExitCode -ne "0") { throw "'git checkout -b $NewBranchName' failed" }
|
||||||
|
@ -23,8 +23,8 @@ try {
|
|||||||
if ($lastExitCode -ne "0") { throw "'git status' failed in $RepoDir" }
|
if ($lastExitCode -ne "0") { throw "'git status' failed in $RepoDir" }
|
||||||
if ("$Result" -notmatch "nothing to commit, working tree clean") { throw "Repository is NOT clean: $Result" }
|
if ("$Result" -notmatch "nothing to commit, working tree clean") { throw "Repository is NOT clean: $Result" }
|
||||||
|
|
||||||
& git fetch --all --recurse-submodules
|
& git fetch --all --recurse-submodules --jobs=4
|
||||||
if ($lastExitCode -ne "0") { throw "'git fetch --all --recurse-submodules' failed" }
|
if ($lastExitCode -ne "0") { throw "'git fetch' failed" }
|
||||||
|
|
||||||
& git tag "$NewTagName"
|
& git tag "$NewTagName"
|
||||||
if ($lastExitCode -ne "0") { throw "Error: 'git tag $NewTagName' failed!" }
|
if ($lastExitCode -ne "0") { throw "Error: 'git tag $NewTagName' failed!" }
|
||||||
|
@ -17,8 +17,8 @@ try {
|
|||||||
& git --version
|
& git --version
|
||||||
if ($lastExitCode -ne "0") { throw "Can't execute 'git' - make sure Git is installed and available" }
|
if ($lastExitCode -ne "0") { throw "Can't execute 'git' - make sure Git is installed and available" }
|
||||||
|
|
||||||
& git fetch --all --recurse-submodules
|
& git fetch --all --recurse-submodules --jobs=4
|
||||||
if ($lastExitCode -ne "0") { throw "'git fetch --all --recurse-submodules' failed" }
|
if ($lastExitCode -ne "0") { throw "'git fetch' failed" }
|
||||||
|
|
||||||
write-output ""
|
write-output ""
|
||||||
write-output "List of Git Branches"
|
write-output "List of Git Branches"
|
||||||
|
@ -17,8 +17,8 @@ try {
|
|||||||
& git --version
|
& git --version
|
||||||
if ($lastExitCode -ne "0") { throw "Can't execute 'git' - make sure Git is installed and available" }
|
if ($lastExitCode -ne "0") { throw "Can't execute 'git' - make sure Git is installed and available" }
|
||||||
|
|
||||||
& git fetch --all --recurse-submodules
|
& git fetch --all --recurse-submodules --jobs=4
|
||||||
if ($lastExitCode -ne "0") { throw "'git fetch --all --recurse-submodules' failed" }
|
if ($lastExitCode -ne "0") { throw "'git fetch' failed" }
|
||||||
|
|
||||||
write-output ""
|
write-output ""
|
||||||
write-output "List of Git Commits"
|
write-output "List of Git Commits"
|
||||||
|
@ -23,7 +23,7 @@ try {
|
|||||||
if ($lastExitCode -ne "0") { throw "'git status' failed in $RepoDir" }
|
if ($lastExitCode -ne "0") { throw "'git status' failed in $RepoDir" }
|
||||||
if ("$Result" -notmatch "nothing to commit, working tree clean") { throw "Repository is NOT clean: $Result" }
|
if ("$Result" -notmatch "nothing to commit, working tree clean") { throw "Repository is NOT clean: $Result" }
|
||||||
|
|
||||||
& git fetch --all --recurse-submodules
|
& git fetch --all --recurse-submodules --jobs=4
|
||||||
if ($lastExitCode -ne "0") { throw "'git fetch' failed" }
|
if ($lastExitCode -ne "0") { throw "'git fetch' failed" }
|
||||||
|
|
||||||
& git switch --recurse-submodules "$BranchName"
|
& git switch --recurse-submodules "$BranchName"
|
||||||
|
Loading…
Reference in New Issue
Block a user