Add git fetch

This commit is contained in:
Markus Fleschutz 2021-05-06 17:10:00 +02:00
parent 0d55bd2ceb
commit 64cbf6c9ce
2 changed files with 5 additions and 2 deletions

View File

@ -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"

View File

@ -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" }