From: Martijn van Oosterhout Date: Fri, 08 Feb 2013 16:53:24 GMT Subject: Re: git filter-branch --prune-empty not removing commits Message-ID: In-Reply-To: On 8 February 2013 16:23, Martijn van Oosterhout wrote: > git_commit_non_empty_tree() > { > + if test $# = 1 && test -z "$(git ls-tree $1)" ; then > + skip_commit "$@" > + fi > if test $# = 3 && test "$1" = $(git rev-parse "$3^{tree}"); then > map "$3" > else > git commit-tree "$@" > fi > } This bit is a but bunk, the fi should be an else, otherwise it does nothing. Have a nice day, -- Martijn van Oosterhout http://svana.org/kleptog/