Re: git-svn questions: how to clone/init non-standard layout branches/tags?
- From
- Luke Lu <git@vicaya.com>
- Date
- Nov 3, 2007, 21:26 UTC
- Message-ID
- <B0D0BB75-58AF-4E4E-8C3F-6E615870016A@vicaya.com>
- In-Reply-To
- <8c5c35580711031352n3396807fm3004ebe8f86110ed@mail.gmail.com>
On Nov 3, 2007, at 1:52 PM, Lars Hjemli wrote:
Show 29 quoted lines
> On Nov 3, 2007 9:41 PM, Luke Lu <git@vicaya.com> wrote: >> On Nov 3, 2007, at 1:32 PM, Lars Hjemli wrote: >>> On Nov 3, 2007 9:01 PM, Luke Lu <git@vicaya.com> wrote: >>>> I did try to add a "fetch" line for the production branch like >>>> this: >>>> >>>> [svn-remote "svn"] >>>> url = svn+ssh://host/svn/project >>>> fetch = production:refs/remotes/svn-prod >>>> fetch = trunk:refs/remotes/git-svn >>>> >>>> which is modeled after http://lists-archives.org/git/420712-git- >>>> svn- >>>> remote-tracking-branch-question.html >>>> >>> Did you forget to run 'git svn fetch' after modifying your .git/ >>> config? >> >> Yes, I did. It didn't seem to do anything. > > Hmm, it works for me, I've been adding and removing branches like this > for months, but my .git/config is slightly different: > > [svn-remote "svn"] > url = svn://example.org > fetch = project/trunk:refs/remotes/svn/trunk > fetch = project/branches/topic:refs/remotes/svn/topic > > I don't know if this difference is important, though...
I tried to test this on a local repository like file:///path/project. It seems to work and get everything properly upon git svn fetch. However it doesn't work for the production branch. If I modify the fetch line a bit to svn/prod instead of svn-prod and try git svn fetch again. It would hang for about 2 minutes and return 0 and show nothing in progress. A .git/svn/svn/prod directory is created but it's empty.
One thing that might be special for this branch is that it gets deleted and recreated/copied all the time from trunk. I wonder if git- svn use some kind of heuristics to determine if there is anything to fetch and silently failing...
__Luke