zulip/tools/fetch-rebase-pull-request

10 lines
185 B
Plaintext
Raw Normal View History

#!/bin/sh
set -e
set -x
request_id="$1"
git fetch upstream "pull/$request_id/head"
git checkout upstream/master -b "review-${request_id}"
git reset --hard FETCH_HEAD
git pull --rebase