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

Re: git-svn: Fetch svn branches only and have git recognize them as branches?

From
EWEric Wong <normalperson@yhbt.net>
Date
Mar 12, 2015, 23:33 UTC
Message-ID
<20150312233338.GA16358@dcvr.yhbt.net>
In-Reply-To
<CAMMCKnc9AKjuwQ_RNxD_g3tn=xFQkbO1i-U=rP2VLWPi7qizGA@mail.gmail.com>
Brian Koehmstedt <bkoehmstedt@berkeley.edu> wrote:
Show 9 quoted lines
> My latest failed attempt was this:
> 
> [svn-remote "svn"]
>         url = http://abc.com/repo/branches
>         fetch = :refs/remotes/svn/branches
>         branches = *:refs/remotes/svn/*
> 
> git svn fetch svn
> This fetched all the branch directories as one branch.
You probably do not need the "fetch" line there, only:
[svn-remote "svn"]
        url = http://abc.com/repo/branches
        branches = *:refs/remotes/svn/*

I haven't used the branches/tags functionality of git-svn in many years, though.

Previous: Brian Koehmstedt
Message 5 of 5 in “git-svn: Fetch svn branches only and have git recognize them as branches?”
  1. Brian KoehmstedtMar 12, 2015
  2. Junio C HamanoMar 12, 2015
  3. Brian KoehmstedtMar 12, 2015
  4. Brian KoehmstedtMar 16, 2015
  5. Eric WongMar 12, 2015

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.