# git-svn eliminating master

3 messages from 2007-09-28 to 2007-09-28. Participants: Russ Brown, Junio C Hamano.
Thread: https://gitlist.dev/t/10062

## Russ Brown, 2007-09-28 20:01

Subject: git-svn eliminating master
Message-ID: <46FD5DAF.7030204@gmail.com>
URL: https://gitlist.dev/e/46FD5DAF.7030204%40gmail.com

```
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, 2007-09-28 21:43

Subject: Re: git-svn eliminating master
Message-ID: <7vlkaqo49n.fsf@gitster.siamese.dyndns.org>
URL: https://gitlist.dev/e/7vlkaqo49n.fsf%40gitster.siamese.dyndns.org
In-Reply-To: <46FD5DAF.7030204@gmail.com>

```
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.

```

## Russ Brown, 2007-09-28 22:34

Subject: Re: git-svn eliminating master
Message-ID: <46FD8169.6040505@gmail.com>
URL: https://gitlist.dev/e/46FD8169.6040505%40gmail.com
In-Reply-To: <7vlkaqo49n.fsf@gitster.siamese.dyndns.org>

```
Junio C Hamano wrote:
> 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

```
