git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git-svn stubbornly re-creating branch "master"
@ 2009-03-29 17:13 Marcin Owsiany
  2009-03-29 19:52 ` Dmitry Potapov
  2009-03-29 22:28 ` Eric Wong
  0 siblings, 2 replies; 10+ messages in thread
From: Marcin Owsiany @ 2009-03-29 17:13 UTC (permalink / raw)
  To: git

Hello,

I created my git repository by cloning it with git-svn from an upstream SVN
repository. When I did that, a branch "master" was created. Afterwards I
renamed that branch to "upstream". However every time I "git-svn fetch", it
recreates the "master" branch, pointing it at the newest upstream commit.

Ideally, I'd like it to just forget about "master" and do the same to my
"upstream" branch. Is it possible?

If not, then is it at least possible to have it not recreate the "master"
branch? It clutters my view.


Here's a typescript (with git 1:1.5.6.3-1.1ubuntu2):

$ svnadmin create svn-repo
$ r=`pwd`/svn-repo
$ svn co file://$r svn
Checked out revision 0.
$ (cd svn && echo one >> file && svn add file && svn ci -m one file)
A         file
Adding         file
Transmitting file data .
Committed revision 1.
$ git-svn clone file://$r git
Initialized empty Git repository in /home/mowsiany/tmp/gs/git/.git/
        A       file
r1 = 66e7199fe089b1e626efb5f2f3106189d992d288 (git-svn)
Checked out HEAD:
  file:///home/mowsiany/tmp/gs/svn-repo r1
$ (cd git && git show-ref )
66e7199fe089b1e626efb5f2f3106189d992d288 refs/heads/master
66e7199fe089b1e626efb5f2f3106189d992d288 refs/remotes/git-svn
$ (cd git && git branch mystuff )
$ (cd git && git show-ref )
66e7199fe089b1e626efb5f2f3106189d992d288 refs/heads/master
66e7199fe089b1e626efb5f2f3106189d992d288 refs/heads/mystuff
66e7199fe089b1e626efb5f2f3106189d992d288 refs/remotes/git-svn
$ (cd git && git branch -m master upstream )
$ (cd git && git show-ref )
66e7199fe089b1e626efb5f2f3106189d992d288 refs/heads/mystuff
66e7199fe089b1e626efb5f2f3106189d992d288 refs/heads/upstream
66e7199fe089b1e626efb5f2f3106189d992d288 refs/remotes/git-svn
$ (cd svn && echo two >> file  && svn ci -m two file)
Sending        file
Transmitting file data .
Committed revision 2.
$ (cd git && git-svn fetch  )
        M       file
r2 = c2f8e7fd146e0e9f1223f20bf3c2105f71632c4b (git-svn)
$ (cd git && git show-ref )
c2f8e7fd146e0e9f1223f20bf3c2105f71632c4b refs/heads/master
66e7199fe089b1e626efb5f2f3106189d992d288 refs/heads/mystuff
66e7199fe089b1e626efb5f2f3106189d992d288 refs/heads/upstream
c2f8e7fd146e0e9f1223f20bf3c2105f71632c4b refs/remotes/git-svn

As you can see, "master" sprang back to life after the last command.

-- 
Marcin Owsiany <porridge@debian.org>             http://marcin.owsiany.pl/
GnuPG: 1024D/60F41216  FE67 DA2D 0ACA FC5E 3F75  D6F6 3A0D 8AA0 60F4 1216

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

end of thread, other threads:[~2009-06-14 21:16 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-29 17:13 git-svn stubbornly re-creating branch "master" Marcin Owsiany
2009-03-29 19:52 ` Dmitry Potapov
2009-04-03 10:57   ` Mikael Magnusson
2009-06-06 10:55     ` Marcin Owsiany
2009-06-14 15:52       ` Marcin Owsiany
2009-06-14 17:33         ` Andreas Ericsson
2009-06-14 21:16           ` Marcin Owsiany
2009-03-29 22:28 ` Eric Wong
2009-04-03 10:42   ` David Kågedal
2009-04-03 12:26   ` Marcin Owsiany

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).