Added a git pull when docker-versions-create.sh starts with each branch

This commit is contained in:
Geoff Bourne
2020-02-01 08:52:00 -06:00
parent 9d67dceff3
commit 2ffc1641a0

View File

@@ -47,6 +47,9 @@ for branch in "${branches_list[@]}"; do
exit 1; }
proceed='False'
while [[ "$proceed" == "False" ]]; do
# Ensure local branch is aligned with remote since docker-versions-create may have been run elsewhere
git pull
if git merge -m 'Auto-merging via docker-versions-create' master; then
proceed="True"
echo "Branch $branch updated to current master successfully"