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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Feb 4, 2009, at 11:24 AM, Marius Seritan wrote:

On Feb 4, 2009, at 11:05 AM, Marius Seritan wrote:
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



Last follow-up on svn git. I ended up re-reading the docs (duh) and doing the following:
git svn init -s --prefix=svn/   http://svn.name.com/svn/project
git svn fetch -r 800:HEAD

This brought down the last 2 branches and the trunk. It took a couple of minutes and uses 120MB of disk space. Much better than hours and 3GB of disk.
Love it,

Marius

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux