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 c303913..b1abf9c 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