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

Cloning svn project with flat layout (remote wildcard inside path component)

From
Marcin Wiśnicki <mwisnicki@gmail.com>
Date
Sep 17, 2010, 21:14 UTC
Message-ID
<AANLkTin7byfdi=K2eN_9Cqx_HQBJatm1qW7zO-te2F-1@mail.gmail.com>

I'm trying to clone putty project from it's svn repository. Unfortunately they are using very nonstandard layout where everything is in a single directory:

/putty = trunk /putty-branches-* = release branches /putty-spinoffs = another branch /putty-0.* = release tags

To get it working I tried following:
[svn-remote "svn"]
        url = svn://svn.tartarus.org/sgt
        fetch = putty:refs/remotes/trunk
        branches = putty-branch-*:refs/remotes/branches/*
        branches = putty-{spinoffs}:refs/remotes/branches/putty-*
        tags = /putty-[0-9]*:refs/remotes/tags/*

Turns out however, such configuration is invalid since remote wildcards are supported only in place of whole path component, not as a part of it.

Obviously, it would be nice if it was working. Consider this a feature request, if I may make one.

Actually, I have another: support extended regular expressions (with capture groups) on remote side and back-references on local ref side, giving the user control over local branch names.

Message 1 of 1 in “Cloning svn project with flat layout (remote wildcard inside path component)”
  1. Marcin WiśnickiSep 17, 2010

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.