git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Eric Wong <normalperson@yhbt.net>
To: Ryan Phillips <ryan@trolocsis.com>
Cc: git@vger.kernel.org
Subject: Re: git-svn and svn branches
Date: Tue, 25 Nov 2008 15:08:23 -0800	[thread overview]
Message-ID: <20081125230823.GA6664@mayonaise> (raw)
In-Reply-To: <20081121195835.GA12141@athena.lan>

Ryan Phillips <ryan@trolocsis.com> wrote:
> I followed the following instructions on adding a remote svn branch to my
> local git-svn repository. http://www.dmo.ca/blog/20070608113513
> 
> Are these still accurate?
> 
> I started the repository with
>   # git svn init [url/trunk]`
>   # cd project.git
>   # git svn fetch -r[HEAD revision]
> which works fine. I added something like Snippet 1 to the .git/config and
> issued a `git svn fetch -r[HEAD revision of the branch]` and nothing
> happens. It takes git-svn a few seconds to run, but the git-remote svn
> branch doesn't get initialized.
> 
> Does this procedure only work with a full mirror of a git-svn repository?
> or perhaps I'm doing something wrong. Any help would be appreciated.
> 
> Thanks,
> Ryan
> 
> Snippet 1
> =========
> 
> [svn-remote "svn34"]
> url = svn+ssh://your-server/home/svn/project-name/branches/3.4.x
> fetch = :refs/remotes/git-svn-3.4

Try this:

  git svn fetch -i svn34

It's been a while since I've used this, but I believe a test
case covers it so it probably still works :)

-- 
Eric Wong

  reply	other threads:[~2008-11-25 23:10 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-21 19:58 git-svn and svn branches Ryan Phillips
2008-11-25 23:08 ` Eric Wong [this message]
2008-11-27 10:02   ` Michael J Gruber

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=20081125230823.GA6664@mayonaise \
    --to=normalperson@yhbt.net \
    --cc=git@vger.kernel.org \
    --cc=ryan@trolocsis.com \
    /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).