From: Uwe Kleine-König Date: Sat, 7 Mar 2009 20:01:30 +0000 (+0100) Subject: Pass -- to diff-tree for branch/filename disambiguation X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=topgit.git;a=commitdiff_plain;h=a20892979b7eebb2218a2744747d68964e1cd48f;hp=ad4ba21f04e5c36b258450a886a104351bcef8da Pass -- to diff-tree for branch/filename disambiguation Script to show the need of this patch: mkdir ty; cd ty; git init-db; touch a; git add a; git commit -m "..."; tg create bla; git commit -m "..."; mkdir bla; touch bla/blub; git add bla/blub; git commit -m "..."; tg export --quilt tt; Reported-by: "Bernhard R. Link" Signed-off-by: Uwe Kleine-König --- 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]