Re: [BUG] git filter-branch failed to suppress a file with an accentuated letter in the filename
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Feb 15, 2008, 18:12 UTC
- Message-ID
- <alpine.LSU.1.00.0802151811240.30505@racer.site>
- In-Reply-To
- <7vd4qygld8.fsf@gitster.siamese.dyndns.org>
Hi,
On Fri, 15 Feb 2008, Junio C Hamano wrote:
Show 15 quoted lines
> Remi Vanicat <vanicat@debian.org> 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 > > these days, without any of the cut and cruft?
Maybe even using "-z" in both cases?
Having said that, I do not understand why the old code did not work. Will have a look later today.
Ciao, Dscho