zulip/tools/reset-to-pull-request

9 lines
139 B
Bash
Executable File

#!/bin/bash
set -e
set -x
request_id="$1"
remote=${2:-"upstream"}
git fetch "$remote" "pull/$request_id/head"
git reset --hard FETCH_HEAD