chiark / gitweb /
Pass -- to diff-tree for branch/filename disambiguation
[topgit.git] / tg.sh
diff --git a/tg.sh b/tg.sh
index 3af2cd8..43d1c9f 100644 (file)
--- a/tg.sh
+++ b/tg.sh
@@ -226,7 +226,7 @@ needs_update()
 # branch_empty NAME
 branch_empty()
 {
-       [ -z "$(git diff-tree "refs/top-bases/$1" "$1" | fgrep -v "     .top")" ]
+       [ -z "$(git diff-tree "refs/top-bases/$1" "$1" -- | fgrep -v "  .top")" ]
 }
 
 # switch_to_base NAME [SEED]