diff options
author | Akira TAGOH <akira@tagoh.org> | 2012-03-09 22:24:18 +0900 |
---|---|---|
committer | Akira TAGOH <akira@tagoh.org> | 2012-03-09 22:24:18 +0900 |
commit | d6de5351922d79ccf38d2bc6b75f6ea2011dd421 (patch) | |
tree | 544e05279e22a706e8bb63fe2f90157da9a95259 | |
parent | 78d75c003c5f03a2aeebc628d70d3f75bd6f5707 (diff) |
Update to detect the uncommited changes properly
-rw-r--r-- | new-version.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/new-version.sh b/new-version.sh index 9ab64dd..6cf609f 100644 --- a/new-version.sh +++ b/new-version.sh @@ -1,6 +1,6 @@ #!/bin/sh -if git status -a > /dev/null; then +if [ "x`git status -s -uno`" != "x" ]; then echo 'Uncommited changes in repository' 1>&2 exit 1 fi |