zulip/tools/reset-to-pull-request

8 lines
110 B
Plaintext
Raw Normal View History

#!/bin/sh
set -e
set -x
request_id="$1"
git fetch origin "pull/$request_id/head"
git reset --hard FETCH_HEAD