mirror of https://github.com/zulip/zulip.git
tools: Add check for uncommitted files to PR review scripts.
This commit is contained in:
parent
ffa654f780
commit
44502da767
|
@ -2,6 +2,11 @@
|
|||
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"
|
||||
|
|
|
@ -2,6 +2,11 @@
|
|||
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"
|
||||
|
|
Loading…
Reference in New Issue