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

Re: hot to fix git svn import or just discard 'branches' folder

From
MSMarius Seritan <mseritan@decodeideas.com>
Date
Feb 4, 2009, 19:24 UTC
Message-ID
<06C1D783-D51B-49E9-92A2-C1EA035BE3D6@decodeideas.com>
In-Reply-To
<5713EFD1-E6E7-4FD5-BF17-FDA5FF6F7C6B@decodeideas.com>
On Feb 4, 2009, at 11:05 AM, Marius Seritan wrote:
Show 7 quoted lines
>>
>> I believe fixing this without reimporting requires using "git  
>> filter-branch".  I'm unfamiliar with it, so I can't help you with  
>> that part.
>
> Thanks, I will look into it. From the first read this seems to be  
> pretty advanced.
Ok, I think I killed it :-/

I did git filter-branch --subdirectory-filter trunk -- --all

This cleaned up git and I have just the trunk for 218MB, that's much more acceptable. Unfortunately 'git svn rebase' now returns:

Unable to determine upstream SVN information from working tree history

I went into the .git/config and added a trunk but no luck. I also edited .git/svn/.metadata in the same way.

As another data point git svn log is still working.
Marius
Previous: Marius SeritanNext: Marius Seritan
Message 4 of 5 in “hot to fix git svn import or just discard 'branches' folder”
  1. Marius SeritanFeb 4, 2009
  2. Brian GernhardtFeb 4, 2009
  3. Marius SeritanFeb 4, 2009
  4. Marius SeritanFeb 4, 2009
  5. Marius SeritanFeb 4, 2009

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.