mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-02-22 20:51:17 +01:00
Add git fetch
This commit is contained in:
parent
0d55bd2ceb
commit
64cbf6c9ce
@ -14,8 +14,8 @@ try {
|
||||
$Null = (git --version)
|
||||
if ($lastExitCode -ne "0") { throw "Can't execute 'git' - make sure Git is installed and available" }
|
||||
|
||||
& "$PSScriptRoot/fetch-repo.ps1"
|
||||
if ($lastExitCode -ne "0") { throw "Script 'fetch-repo.ps1' failed" }
|
||||
& git fetch
|
||||
if ($lastExitCode -ne "0") { throw "'git fetch' failed" }
|
||||
|
||||
write-output ""
|
||||
write-output "List of Git Commits"
|
||||
|
@ -14,6 +14,9 @@ try {
|
||||
$Null = (git --version)
|
||||
if ($lastExitCode -ne "0") { throw "Can't execute 'git' - make sure Git is installed and available" }
|
||||
|
||||
& git fetch
|
||||
if ($lastExitCode -ne "0") { throw "'git fetch' failed" }
|
||||
|
||||
& git submodule
|
||||
if ($lastExitCode -ne "0") { throw "'git submodule' failed" }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user