From f3d3656fe69079f78f1a76ad2aef349ec463805f Mon Sep 17 00:00:00 2001 From: Tim Hockin Date: Thu, 2 Jul 2015 13:22:25 -0700 Subject: [PATCH] Test for uncommited changes in and out of index --- build/mark-new-version.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/mark-new-version.sh b/build/mark-new-version.sh index b06014b054c..cd229402b3d 100755 --- a/build/mark-new-version.sh +++ b/build/mark-new-version.sh @@ -40,8 +40,8 @@ VERSION_MAJOR="${BASH_REMATCH[1]}" VERSION_MINOR="${BASH_REMATCH[2]}" VERSION_PATCH="${BASH_REMATCH[3]}" -if ! git diff-index --quiet --cached HEAD; then - echo "!!! You must not have any changes in your index when running this command" +if ! git diff HEAD --quiet; then + echo "!!! You must not have any uncommitted changes when running this command" exit 1 fi