Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Artifacts/windows-clone-git-repo/GitEnlister.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -418,10 +418,10 @@ function CloneGitRepo
WriteLog $($gitExeLocation + " " + $args)

# Run the git clone operation
$p = Start-Process -FilePath $gitExeLocation -ArgumentList $args -RedirectStandardOutput $stdOutLogfile -RedirectStandardError $stdErrLogfile -PassThru -Wait
& cmd /c "git $args 2>&1"

# Was the clone operation successful?
if ($p.ExitCode -ne 0)
if ($LASTEXITCODE -ne 0)
{
$errMsg = $("Error! Git clone failed with exit code " + $p.ExitCode + ". Please see the log file: " + $stdErrLogfile)
WriteLog $errMsg
Expand Down