* [GIT-SVN] master follows not trunk
@ 2009-04-22 15:21 Bert Wesarg
2009-04-23 5:56 ` Deskin Miller
2009-04-23 18:37 ` Eric Wong
0 siblings, 2 replies; 4+ messages in thread
From: Bert Wesarg @ 2009-04-22 15:21 UTC (permalink / raw)
To: Git Mailing List; +Cc: Eric Wong
Hi,
it seams so, that git-svn sets the master branch to that svn branch
which has the highest revision!
I cloned a svn repo today where exactly this happend. I.e. master
pointed not to the trunk but to the branch with the highest revision.
After trunk moved forward, a git svn rebase told me that master is up
to date.
A second clean clone of this repo and master pointed to trunk.
Is this indented?
Bert
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [GIT-SVN] master follows not trunk
2009-04-22 15:21 [GIT-SVN] master follows not trunk Bert Wesarg
@ 2009-04-23 5:56 ` Deskin Miller
2009-04-23 18:37 ` Eric Wong
1 sibling, 0 replies; 4+ messages in thread
From: Deskin Miller @ 2009-04-23 5:56 UTC (permalink / raw)
To: Bert Wesarg; +Cc: Git Mailing List, Eric Wong
On Wed, Apr 22, 2009 at 08:21, Bert Wesarg <bert.wesarg@googlemail.com> wrote:
> Hi,
>
> it seams so, that git-svn sets the master branch to that svn branch
> which has the highest revision!
>
> I cloned a svn repo today where exactly this happend. I.e. master
> pointed not to the trunk but to the branch with the highest revision.
> After trunk moved forward, a git svn rebase told me that master is up
> to date.
>
> A second clean clone of this repo and master pointed to trunk.
>
> Is this indented?
It's well-known, at any rate, and it's somewhat conceptually
consistent with git, which will use the remote's HEAD for its
currently-checked-out branch upon clone.
Consider also that although your svn repository is well-formed and has
trunk/ tags/ branches/, not all do; or, perhaps someone is interested
in only one branch, or put multiple svn-remote.svn.fetch lines in
.git/config before fetching. Which svn branch should become master
then?
With that said, you're not the first person to be surprised by this;
I'm sure you could patch git svn to tell you which svn branch it was
checking out. It'd probably be a pretty simple tweak, but
unfortunately I'm not in a position to do it currently.
Deskin Miller
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [GIT-SVN] master follows not trunk
2009-04-22 15:21 [GIT-SVN] master follows not trunk Bert Wesarg
2009-04-23 5:56 ` Deskin Miller
@ 2009-04-23 18:37 ` Eric Wong
2009-04-23 19:38 ` Pascal Obry
1 sibling, 1 reply; 4+ messages in thread
From: Eric Wong @ 2009-04-23 18:37 UTC (permalink / raw)
To: Bert Wesarg; +Cc: Git Mailing List
Bert Wesarg <bert.wesarg@googlemail.com> wrote:
> Hi,
>
> it seams so, that git-svn sets the master branch to that svn branch
> which has the highest revision!
>
> I cloned a svn repo today where exactly this happend. I.e. master
> pointed not to the trunk but to the branch with the highest revision.
> After trunk moved forward, a git svn rebase told me that master is up
> to date.
>
> A second clean clone of this repo and master pointed to trunk.
>
> Is this indented?
Yes it was intended. It was once the case that several repositories I
tracked had work done almost exclusively in branches and trunk could've
been months/years behind and worthless.
However, this issue has come up many times now so maybe setting
master==trunk if trunk exists (sometimes it does not)...
Any objections?
--
Eric Wong
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [GIT-SVN] master follows not trunk
2009-04-23 18:37 ` Eric Wong
@ 2009-04-23 19:38 ` Pascal Obry
0 siblings, 0 replies; 4+ messages in thread
From: Pascal Obry @ 2009-04-23 19:38 UTC (permalink / raw)
To: Eric Wong; +Cc: Bert Wesarg, Git Mailing List
Eric,
> However, this issue has come up many times now so maybe setting
> master==trunk if trunk exists (sometimes it does not)...
>
> Any objections?
I think it is a good idea as this would be just right in most cases.
--
--|------------------------------------------------------
--| Pascal Obry Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--| http://www.obry.net - http://v2p.fr.eu.org
--| "The best way to travel is by means of imagination"
--|
--| gpg --keyserver keys.gnupg.net --recv-key F949BD3B
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-04-23 19:39 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-22 15:21 [GIT-SVN] master follows not trunk Bert Wesarg
2009-04-23 5:56 ` Deskin Miller
2009-04-23 18:37 ` Eric Wong
2009-04-23 19:38 ` Pascal Obry
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.