diff --git a/dev-tools/atomic_push.sh b/dev-tools/atomic_push.sh index d1b735f15374..bc0863913469 100755 --- a/dev-tools/atomic_push.sh +++ b/dev-tools/atomic_push.sh @@ -37,7 +37,7 @@ do # Pull and rebase all branches to ensure we've incorporated any new upstream commits git checkout --quiet ${BRANCH} - git pull "${REMOTE}" --rebase --quiet + git pull "${REMOTE}" "${BRANCH}" --rebase --quiet PENDING_COMMITS=$(git log ${REMOTE}/${BRANCH}..HEAD --oneline | grep "^.*$" -c || true)