]> git.rm.cloudns.org Git - xonotic/div0-gittools.git/commitdiff
proper error exit on no revision found
authorRudolf Polzer <divverent@xonotic.org>
Wed, 27 Mar 2013 08:24:33 +0000 (09:24 +0100)
committerRudolf Polzer <divverent@xonotic.org>
Wed, 27 Mar 2013 08:24:33 +0000 (09:24 +0100)
git-identify-revision

index c30391309cb88699dbc426548f95d0c9fb634d40..b1abf9c05b6fbd4e6511ba1c453678c0e5ba6782 100755 (executable)
@@ -68,5 +68,9 @@ for rev in $allrevs; do
 done
 echo >&2 "Done."
 
+if [ -z "$bestrevscore" ]; then
+       exit 1
+fi
+
 echo "$bestrev"
 git diff $diffopts --cached "$bestrev" >&2