X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=blobdiff_plain;f=tg.sh;h=43d1c9f69c6ab3dc7639598568ca7ccec9411ae0;hb=c32d1dd4fcafad3f9c570adeda580a90d564a3af;hp=f0496f1b6ade99b1f9290f3cc5fe7096fc4373ba;hpb=2f7cb405238120a51ab113427d25488ef87ef14b;p=topgit.git diff --git a/tg.sh b/tg.sh index f0496f1..43d1c9f 100644 --- a/tg.sh +++ b/tg.sh @@ -3,7 +3,7 @@ # (c) Petr Baudis 2008 # GPLv2 -TG_VERSION=0.6 +TG_VERSION=0.7 ## Auxiliary functions @@ -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]