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 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