git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git-svn with multiple remote repositories?

From
Jacob Helwig <jacob.helwig@gmail.com>
Date
Dec 2, 2008, 23:07 UTC
Message-ID
<9071816B-9AA4-4891-8719-556446C16AD7@gmail.com>
In-Reply-To
<20081202213930.GD12716@raven.wolf.lan>

No branch for your checkout is correct. Try something like: git checkout -b foo public/trunk

On Dec 2, 2008, at 13:39, Josef Wolf <jw@raven.inka.de> wrote:
Show 52 quoted lines
> Hello,
>
> I am trying to create a git repository with two remote svn  
> repositories
> so that I can merge/move patch-sets back and forth between the svn
> repositories.
>
> This is what I have tried so far:
>
>  mkdir -p project
>  cd project
>  git-svn init -R private -s https://foo.bar/repos/private
>
> Then I go and edit .git/config too look like this:
>
>  [core]
>          repositoryformatversion = 0
>          filemode = true
>          bare = false
>          logallrefupdates = true
>  [svn-remote "private"]
>          url       =   https://foo.bar/repos/private
>          fetch     =      trunk:refs/remotes/private/trunk
>          branches  = branches/*:refs/remotes/private/*
>          tags      =     tags/*:refs/remotes/private/tags/*
>  [svn-remote "public"]
>          url       =   https://foo.bar/repos/public
>          fetch     =      trunk:refs/remotes/public/trunk
>          branches  = branches/*:refs/remotes/public/*
>          tags      =     tags/*:refs/remotes/public/tags/*
>
> And finally, I do
>
>  git-svn fetch -R private
>  git-svn fetch -R public
>
> Both commands seem to fetch the contents from their origins.  But
> git-branch shows me only the local master branch with contents from
> the "private" svn repository.  When I do
>
>  git checkout public/trunk
>
> the contents actually change to reflect the "public" svn repository,
> but git-branch says I am on "(no branch)" at all.
>
> As a newbie to git, I am somewhat confused now.  Any hints how I can
> get a hold on the remote branches merge between them?
>
> --
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous: Josef WolfNext: Michael J Gruber
Message 2 of 3 in “git-svn with multiple remote repositories?”
  1. Josef WolfDec 2, 2008
  2. Jacob HelwigDec 2, 2008
  3. Michael J GruberDec 3, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.