From: Remi Vanicat Date: Sat, 16 Feb 2008 06:34:29 GMT Subject: Re: [BUG] git filter-branch failed to suppress a file with an accentuated letter in the filename Message-ID: <87tzk9tnnu.dlv@maison.homelinux.org> In-Reply-To: <7vd4qygld8.fsf@gitster.siamese.dyndns.org> Junio C Hamano writes: > Remi Vanicat writes: > >> The culprit seem to be those line of filter-branch: (around line 279) >> git diff-index -r $commit | cut -f 2- | tr '\012' '\000' | \ >> xargs -0 git update-index --add --replace --remove >> git diff-index giving the filename as "foo/bar\303\251" > > I have to wonder in what century filter-branch was written ;-) > > Shouldn't those two lines be: > > git diff-index -r --name-only $commit | > git update-index --add --replace --remove --stdin That solve the bug for me. -- Rémi Vanicat