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

Re: Problem with git-svn with limited SVN access

From
Thomas Rast <trast@student.ethz.ch>
Date
Nov 9, 2011, 22:38 UTC
Message-ID
<201111092338.26164.trast@student.ethz.ch>
In-Reply-To
<4EBA63CA.7000201@stickyadstv.com>
Antoine Bonavita wrote:
> ### If I try to add one of the branches manually:
> branches = branches/XXX:refs/remotes/branches/XXX
>  > git svn fetch
> One '*' is needed in glob: 'branches/XXX'

I think having several fetch specs should do the trick, although I cannot easily test with actual permissions.

You can start configuring the repo with
  git init
  git svn init svn://server/ -T trunk
to get an initial layout.  The .git/config will look like
  [svn-remote "svn"]
          url = svn://server/
          fetch = trunk:refs/remotes/trunk

The clue is that the config says 'fetch', not 'trunk'. Much like with git remotes, you can add more fetch specs along the lines of

          fetch = branches/XXX:refs/remotes/svn/XXX
or whatever layout you prefer.

Please tell us whether that works even in the face of restrictions on branches/ itself :-)

-- 
Thomas Rast
trast@{inf,student}.ethz.ch
Previous: Antoine BonavitaNext: Antoine Bonavita
Message 2 of 3 in “Problem with git-svn with limited SVN access”
  1. Antoine BonavitaNov 9, 2011
  2. Thomas RastNov 9, 2011
  3. Antoine BonavitaNov 10, 2011

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.