chiark / gitweb /
branch_contains(): More explicit call to git rev-list
[topgit.git] / tg.sh
diff --git a/tg.sh b/tg.sh
index 6c28467d8829f46d370c415d051ff453cf0e646c..084dc5446e0fdf9e7cd5eaa4675ab7e4d1d3c06e 100644 (file)
--- a/tg.sh
+++ b/tg.sh
@@ -77,7 +77,7 @@ measure_branch()
 # Whether B1 is a superset of B2.
 branch_contains()
 {
-       [ -z "$(git rev-list ^"$1" "$2")" ]
+       [ -z "$(git rev-list ^"$1" "$2" --)" ]
 }
 
 # ref_exists REF