update: also update master when updating stable branch.

This commit is contained in:
Mike McQuaid 2018-11-25 20:16:13 +00:00
parent 2063a8a4d8
commit 9aee39825d
No known key found for this signature in database
GPG Key ID: 48A898132FD8EE70

View File

@ -266,6 +266,11 @@ EOS
then
git checkout --force "$UPSTREAM_BRANCH" "${QUIET_ARGS[@]}"
else
if [[ -n "$UPSTREAM_TAG" && "$UPSTREAM_BRANCH" != "master" ]]
then
git checkout --force -B "master" "origin/master" "${QUIET_ARGS[@]}"
fi
git checkout --force -B "$UPSTREAM_BRANCH" "$REMOTE_REF" "${QUIET_ARGS[@]}"
fi
fi