Update to detect the uncommited changes properly
authorAkira TAGOH <akira@tagoh.org>
Fri, 9 Mar 2012 13:24:18 +0000 (22:24 +0900)
committerAkira TAGOH <akira@tagoh.org>
Fri, 9 Mar 2012 13:24:18 +0000 (22:24 +0900)
new-version.sh

index 9ab64dd..6cf609f 100644 (file)
@@ -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