Skip to content

Commit adc3bd3

Browse files
authored
Sync eng/common directory with azure-sdk-tools repository (Azure#9163)
1 parent a993544 commit adc3bd3

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

eng/common/scripts/git-branch-push.ps1

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,16 @@ do
121121
continue
122122
}
123123

124-
Write-Host "git -c user.name=`"azure-sdk`" -c user.email=`"[email protected]`" commit -am `"$($CommitMsg)`""
125-
git -c user.name="azure-sdk" -c user.email="[email protected]" commit -am "$($CommitMsg)"
124+
Write-Host "git add -A"
125+
git add -A
126+
if ($LASTEXITCODE -ne 0)
127+
{
128+
Write-Error "Unable to git add LASTEXITCODE=$($LASTEXITCODE), see command output above."
129+
continue
130+
}
131+
132+
Write-Host "git -c user.name=`"azure-sdk`" -c user.email=`"[email protected]`" commit -m `"$($CommitMsg)`""
133+
git -c user.name="azure-sdk" -c user.email="[email protected]" commit -m "$($CommitMsg)"
126134
if ($LASTEXITCODE -ne 0)
127135
{
128136
Write-Error "Unable to commit LASTEXITCODE=$($LASTEXITCODE), see command output above."

0 commit comments

Comments
 (0)