From 2ef84e646cedb407ea5caba8a48096f190ae872e Mon Sep 17 00:00:00 2001 From: azure-sdk Date: Thu, 28 May 2020 23:10:47 +0000 Subject: [PATCH] Sync eng/common directory with azure-sdk-tools repository --- eng/common/scripts/git-branch-push.ps1 | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/eng/common/scripts/git-branch-push.ps1 b/eng/common/scripts/git-branch-push.ps1 index b5a7ec8ba221..9ff45f87ad67 100644 --- a/eng/common/scripts/git-branch-push.ps1 +++ b/eng/common/scripts/git-branch-push.ps1 @@ -121,8 +121,16 @@ do continue } - Write-Host "git -c user.name=`"azure-sdk`" -c user.email=`"azuresdk@microsoft.com`" commit -am `"$($CommitMsg)`"" - git -c user.name="azure-sdk" -c user.email="azuresdk@microsoft.com" commit -am "$($CommitMsg)" + Write-Host "git add -A" + git add -A + if ($LASTEXITCODE -ne 0) + { + Write-Error "Unable to git add LASTEXITCODE=$($LASTEXITCODE), see command output above." + continue + } + + Write-Host "git -c user.name=`"azure-sdk`" -c user.email=`"azuresdk@microsoft.com`" commit -m `"$($CommitMsg)`"" + git -c user.name="azure-sdk" -c user.email="azuresdk@microsoft.com" commit -m "$($CommitMsg)" if ($LASTEXITCODE -ne 0) { Write-Error "Unable to commit LASTEXITCODE=$($LASTEXITCODE), see command output above."