1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-26 17:03:12 +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
fi
ret=0
git diff-index --quiet --cached HEAD || ret=$?
if [ "$ret" -eq 1 ]; then
if ! git diff-index --quiet --cached HEAD; then
echo "this git checkout has staged (uncommitted) changes. Refusing to release."
exit
fi
git diff-files --quiet || ret=$?
if [ "$ret" -eq 1 ]; then
if ! git diff-files --quiet; then
echo "this git checkout has uncommitted changes. Refusing to release."
exit
fi