mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +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
|
||||
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
|
||||
fi
|
||||
request_id="$1"
|
||||
|
@@ -4,7 +4,9 @@ set -x
|
||||
|
||||
if ! git diff-index --quiet HEAD; then
|
||||
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
|
||||
fi
|
||||
request_id="$1"
|
||||
|
Reference in New Issue
Block a user