From 152aabbd83fe710842b615a76e8f2930fa065d12 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Fri, 29 May 2020 17:16:58 -0700 Subject: [PATCH] Sync eng/common directory with azure-sdk-tools repository (#149) --- 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 b5a7ec8ba..9ff45f87a 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."