git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git-svn and svn branches
@ 2008-11-21 19:58 Ryan Phillips
  2008-11-25 23:08 ` Eric Wong
  0 siblings, 1 reply; 3+ messages in thread
From: Ryan Phillips @ 2008-11-21 19:58 UTC (permalink / raw)
  To: git

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

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

* Re: git-svn and svn branches
  2008-11-21 19:58 git-svn and svn branches Ryan Phillips
@ 2008-11-25 23:08 ` Eric Wong
  2008-11-27 10:02   ` Michael J Gruber
  0 siblings, 1 reply; 3+ messages in thread
From: Eric Wong @ 2008-11-25 23:08 UTC (permalink / raw)
  To: Ryan Phillips; +Cc: git

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

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

* Re: git-svn and svn branches
  2008-11-25 23:08 ` Eric Wong
@ 2008-11-27 10:02   ` Michael J Gruber
  0 siblings, 0 replies; 3+ messages in thread
From: Michael J Gruber @ 2008-11-27 10:02 UTC (permalink / raw)
  To: Eric Wong; +Cc: Ryan Phillips, git

Eric Wong venit, vidit, dixit 26.11.2008 00:08:
> 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 :)
> 

Uhm, I think it's rather "-R svn34" which tells git-svn to use the svn
remote config "svn34". -i sets GIT_SVN_ID.

Michael

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

end of thread, other threads:[~2008-11-27 10:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-21 19:58 git-svn and svn branches Ryan Phillips
2008-11-25 23:08 ` Eric Wong
2008-11-27 10:02   ` Michael J Gruber

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