1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-28 05:03:59 +03:00

Review comments

This commit is contained in:
Kegan Dougal
2017-01-04 13:57:51 +00:00
parent 1b222249c4
commit df7ac77113

View File

@@ -32,15 +32,12 @@ if [ "$ret" -eq 0 ]; then
exit exit
fi fi
ret=0 if ! git diff-index --quiet --cached HEAD; then
git diff-index --quiet --cached HEAD || ret=$?
if [ "$ret" -eq 1 ]; then
echo "this git checkout has staged (uncommitted) changes. Refusing to release." echo "this git checkout has staged (uncommitted) changes. Refusing to release."
exit exit
fi fi
git diff-files --quiet || ret=$? if ! git diff-files --quiet; then
if [ "$ret" -eq 1 ]; then
echo "this git checkout has uncommitted changes. Refusing to release." echo "this git checkout has uncommitted changes. Refusing to release."
exit exit
fi fi