threads / discuss / 10062

git-svn eliminating master

Subject: git-svn eliminating master

## tl;dr

3 messages between Sep 28, 2007 and Sep 28, 2007.

replies: 2people: 2as markdown or json

Russ Brown· Sep 28, 2007, 20:01 UTC · lore

So I've been using git-svn for a while, and just decided to try publishing my repo via gitweb so I can experiment with showing others my local branches before I dcommit them to the subversion repository (i.e. allowing code review prior to commit).

It's working pretty nicely: the only problem I have is the master branch. I don't use master at all, and I'm willing to be that a lot of other git-svn users don't either. I take all of my branches from either trunk or one of the other upstream svn server branches.

The problem is gitweb appears to show the master branch by default, while I'd rather show trunk by default. Is it legal to just delete the master branch, or failing that have it automatically follow trunk so I don't have to rebase it every time I want to push? Personally I'd rather delete it because it's not used at all in my case and will only lead to confuse the other developers who decide to look at my repo.

I've tried deleting master in a test repo, and it seems to be fine. But I don't know if there are any hidden surprised that might come back to bite me later.

Thanks.
-- 
Russ
Junio C Hamano· Sep 28, 2007, 21:43 UTC · re: Russ Brown · lore

Re: git-svn eliminating master

Russ Brown <pickscrape@gmail.com> writes:
Show 12 quoted lines
> So I've been using git-svn for a while, and just decided to try
> publishing my repo via gitweb so I can experiment with showing others my
> local branches before I dcommit them to the subversion repository (i.e.
> allowing code review prior to commit).
>
> It's working pretty nicely: the only problem I have is the master
> branch. I don't use master at all, and I'm willing to be that a lot of
> other git-svn users don't either. I take all of my branches from either
> trunk or one of the other upstream svn server branches.
>
> The problem is gitweb appears to show the master branch by default,
> while I'd rather show trunk by default.

I think gitweb shows wherever HEAD points at. Update the file on the server and see if it helps.

Russ Brown· Sep 28, 2007, 22:34 UTC · re: Junio C Hamano · lore

Re: git-svn eliminating master

Junio C Hamano wrote:
Show 17 quoted lines
> Russ Brown <pickscrape@gmail.com> writes:
> 
>> So I've been using git-svn for a while, and just decided to try
>> publishing my repo via gitweb so I can experiment with showing others my
>> local branches before I dcommit them to the subversion repository (i.e.
>> allowing code review prior to commit).
>>
>> It's working pretty nicely: the only problem I have is the master
>> branch. I don't use master at all, and I'm willing to be that a lot of
>> other git-svn users don't either. I take all of my branches from either
>> trunk or one of the other upstream svn server branches.
>>
>> The problem is gitweb appears to show the master branch by default,
>> while I'd rather show trunk by default.
> 
> I think gitweb shows wherever HEAD points at.  Update the file
> on the server and see if it helps.

Nice tip. I've updated that now. I'll know if it's worked once trunk gets committed to again: I've rebased master against it so both currently point at the same commit.

-- 
Russ

← back to recent threads