mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 05:23:35 +00:00
14 lines
252 B
Bash
Executable File
14 lines
252 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
set -x
|
|
|
|
if ! git diff-index --quiet HEAD; then
|
|
set +x
|
|
echo "There are uncommitted files. Exiting."
|
|
exit 1
|
|
fi
|
|
request_id="$1"
|
|
remote=${2:-"upstream"}
|
|
git fetch "$remote" "pull/$request_id/head"
|
|
git reset --hard FETCH_HEAD
|