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

Re: Possible bug: git-svn leaves broken tree in case of error

From
AKAnton Korobeynikov <asl@math.spbu.ru>
Date
Oct 31, 2007, 14:04 UTC
Message-ID
<1193839479.26720.16.camel@asl.dorms.spbu.ru>
In-Reply-To
<20071031084257.GA2911.SS5073SS@mayonaise>
Hello, Eric
> With the following test case, I'm not able to reproduce what you're
> describing.

Looks like something nasty here. I also failed to reproduce with such test, however I definitely was sure, that I modelled it properly.

The typical scenario here is that I'm syncing with external repository by hands. I tried to replay this with "bad" authors file, but it doesn't allow me to past through "bad" changeset. And yes, adding new entry to authors files fixes the problem.

I saw corruption, when git-svn in the next run continues fetch changesets. As I saw this problem several times with my current setup, I added some extra backups, so I hope next time I'll catch tree before and after breakage. Sorry for bothering.

Btw, there is way, how repository can be broken (however, by user only): after such error 'git fsck' reports dangling trees, and running 'git gc --prune' will break any future sync.

Anyway, thanks alot.
-- 
With best regards, Anton Korobeynikov.

Faculty of Mathematics & Mechanics, Saint Petersburg State University.
Previous: Karl Hasselström
Message 5 of 5 in “Possible bug: git-svn leaves broken tree in case of error”
  1. Anton KorobeynikovOct 30, 2007
  2. Eric WongOct 31, 2007
  3. Eric WongOct 31, 2007
  4. Karl HasselströmOct 31, 2007
  5. Anton KorobeynikovOct 31, 2007

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.