git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Thomas Rast <trast@student.ethz.ch>
To: Jack Moore <jhmoore719@verizon.net>
Cc: <git@vger.kernel.org>
Subject: Re: Migrate an svn repo to git - Where did all the branches got? and tags?
Date: Fri, 21 May 2010 11:41:45 +0200	[thread overview]
Message-ID: <201005211141.45664.trast@student.ethz.ch> (raw)
In-Reply-To: <CFE20E75-F23D-41EA-89AA-2FF59BFA5DF9@verizon.net>

Jack Moore wrote:
>    git svn clone --no-metadata -t tags -b branches -T trunk <repo-url>
[...]
>   git-repo/.git/refs/tags
> 
> is empty.
[...]
> If I do a 
> 
> 	git branch -r
> 
> the branches and tags show up as remote branches.

That's how git-svn currently works.

To turn all remote branches into local branches you can use the
following trick (don't do this in any repo other than a fresh git-svn
clone unless you understand what it does!):

  git fetch . 'refs/remotes/*:refs/heads/*'

To further clean up history and turn svn tagging commits into real
tags, you can refer, e.g., to the last section of

  http://kb.curseforge.com/repositories/convert-svn-to-git/

-- 
Thomas Rast
trast@{inf,student}.ethz.ch

  reply	other threads:[~2010-05-21  9:42 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-21  4:20 Migrate an svn repo to git - Where did all the branches got? and tags? Jack Moore
2010-05-21  9:41 ` Thomas Rast [this message]
2010-05-21 13:57   ` Jack Moore
2010-05-21 16:11     ` Ævar Arnfjörð Bjarmason

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201005211141.45664.trast@student.ethz.ch \
    --to=trast@student.ethz.ch \
    --cc=git@vger.kernel.org \
    --cc=jhmoore719@verizon.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).