clean-git does not support the {branchA,branchB} syntax for branches and tags

Issue #8 new
Michael Krüske created an issue

git-svn supports the following config syntax for fetching only specific branches and tags from svn:

[svn-remote "svn"]
    url = http://<pathToMayProject>
    fetch = xyz/trunk:refs/remotes/trunk
    branches = xyz/branches/{branchA,branchB}:refs/remotes/*
    tags = xyz/tags/{1.0,1.1,2.0}:refs/remotes/tags/*

This syntax is extremely helpful for reducing the Migration time.

But clean-git does not support this as it only recognizes the asterisk syntax:

[svn-remote "svn"]
    url = http://<pathToMayProject>
    fetch = xyz/trunk:refs/remotes/trunk
    branches = xyz/branches/*refs/remotes/*
    tags = xyz/tags/*refs/remotes/tags/*

Comments (2)

  1. Keith Keith

    This problem appears to be caused by newer git-svn versions setting the prefix to origin by default. If you add --prefix="" to you git svn clone command, then clean-git seems to work as advertised.

    git svn clone --prefix="" --stdlayout --authors-file=authors.txt...
  2. Michael Krüske reporter

    I don't think that you're describing a solution my problem.

    Actually just have a look at my pull request: It is really about supporting the curly brackets ({}) syntax additionally to the asterisk (*).

  3. Log in to comment