git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: "clean" filter breaks git-svn

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Jul 30, 2010, 20:31 UTC
Message-ID
<20100730203111.GD2448@burratino>
In-Reply-To
<AANLkTikp6PgHyj2ujbuD52884ny88hMyxR1CpsbNAVCJ@mail.gmail.com>
Hi Matt,
Matt Wozniski wrote:
Show 6 quoted lines
>                                              When trying to fetch
> commits A and B from the SVN repos, it will fetch A, and then clean(A)
> is committed to my repository.  Then when it tries to fetch B, it is
> horribly confused - it complains of a checksum mismatch, since the
> md5sums of the files in A in the SVN repos don't match up with the
> md5sums of the files in the clean(A) commit in git land.
Interesting.  Yeah, that sounds like a bug.

I am not convinced cleaning fetched files is the right thing to do in the first place (why not just trust the SVN repo?), but I assume people with workflows involving such filters could make a better call.

> Is this a
> known problem?
There is no test for it in git.git, so in that sense no.
>                                    Could git-svn be made to accept the
> md5sum of *either* A or clean(A) instead?

I don’t think that would be right. It’s not just the md5sums not matching that is the problem; it is that in these situations git-svn and the SVN server do not agree about the file’s current content.

Once the code makes the semantics clear, I assume it should Just Work™.

Good luck, Jonathan

Previous: Matt WozniskiNext: Junio C Hamano
Message 2 of 3 in “"clean" filter breaks git-svn”
  1. Matt WozniskiJul 30, 2010
  2. Jonathan NiederJul 30, 2010
  3. Junio C HamanoJul 30, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.