mirror of https://github.com/zulip/zulip.git
git tools: Make error messages more clear.
This commit is contained in:
parent
d63fdf5bc6
commit
abd09cebb2
|
@ -4,7 +4,9 @@ set -x
|
||||||
|
|
||||||
if ! git diff-index --quiet HEAD; then
|
if ! git diff-index --quiet HEAD; then
|
||||||
set +x
|
set +x
|
||||||
echo "There are uncommitted files. Exiting."
|
echo "There are uncommitted changes:"
|
||||||
|
git status --short
|
||||||
|
echo "Doing nothing to avoid losing your work."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
request_id="$1"
|
request_id="$1"
|
||||||
|
|
|
@ -4,7 +4,9 @@ set -x
|
||||||
|
|
||||||
if ! git diff-index --quiet HEAD; then
|
if ! git diff-index --quiet HEAD; then
|
||||||
set +x
|
set +x
|
||||||
echo "There are uncommitted files. Exiting."
|
echo "There are uncommitted changes:"
|
||||||
|
git status --short
|
||||||
|
echo "Doing nothing to avoid losing your work."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
request_id="$1"
|
request_id="$1"
|
||||||
|
|
Loading…
Reference in New Issue