Git development
 help / color / mirror / Atom feed
* After git svn clone master is tied to a branch in svn, howto set  master to trunk
@ 2009-03-11 15:17 Svenn Are Bjerkem
  2009-03-11 16:04 ` Svenn Are Bjerkem
  2009-03-11 16:32 ` Michael J Gruber
  0 siblings, 2 replies; 5+ messages in thread
From: Svenn Are Bjerkem @ 2009-03-11 15:17 UTC (permalink / raw)
  To: git

Hi,
after performing a
$> git svn clone https://svnserver/svn/a/b/c -T trunk/current -t tags -
b branches
I find that the git master has been tied to one of the branches. It
turns out that the highest svn revision number in the repository was
tied to that branch.

For historical reasons we have subdirectories in trunk/ on svn, but I
inspected .git/config
[svn-remote "svn"]
        url = https://svnserver/svn
        fetch = a/b/c/trunk/current:refs/remotes/trunk
        branches = a/b/c/branches/*:refs/remotes/*
        tags = a/b/c/tags/*:refs/remotes/tags/*
And I assume it picked up the strange trunk correctly.

I have been googling around for a while looking for instructions how
to tell git that when I check out "master" it should be "trunk" from
svn and not "branches/next_gen", or more precisely how to move master
to trunk from branches/next_gen.

I guess I could solve the problem by modifying a file in trunk on svn
and commit so that the trunk will get the highest svn revision number
again and redo the clone.

--
Svenn

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-03-11 17:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-11 15:17 After git svn clone master is tied to a branch in svn, howto set master to trunk Svenn Are Bjerkem
2009-03-11 16:04 ` Svenn Are Bjerkem
2009-03-11 16:32 ` Michael J Gruber
2009-03-11 17:20   ` Svenn Are Bjerkem
2009-03-11 17:54     ` Svenn Are Bjerkem

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox