chiark / gitweb /
branch_contains(): More explicit call to git rev-list
authorPetr Baudis <pasky@suse.cz>
Tue, 9 Sep 2008 22:35:48 +0000 (00:35 +0200)
committerPetr Baudis <pasky@suse.cz>
Tue, 9 Sep 2008 22:35:48 +0000 (00:35 +0200)
tg.sh

diff --git a/tg.sh b/tg.sh
index 6c28467..084dc54 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