mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 06:23:38 +00:00
git tools: Make error messages more clear.
This commit is contained in:
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user