X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=topgit.git;a=blobdiff_plain;f=tg.sh;h=43d1c9f69c6ab3dc7639598568ca7ccec9411ae0;hp=3af2cd8bbbfa78b0f7826192cffab929b4b54586;hb=a20892979b7eebb2218a2744747d68964e1cd48f;hpb=ad4ba21f04e5c36b258450a886a104351bcef8da diff --git a/tg.sh b/tg.sh index 3af2cd8..43d1c9f 100644 --- 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]