git-svn --ignore-paths

后端 未结 7 1682
悲哀的现实
悲哀的现实 2021-02-01 04:27

I\'m struggling for a number of hours now with the --ignore-paths option to git-svn, in an attempt to fetch only certain tags from a large repository.

I want to start

7条回答
  •  甜味超标
    2021-02-01 04:57

    I've struggled with the exact same problem and started editing .git/config to explicitly list the branches or tags that I want.

    That approach worked well until I came across a svn repository with lots of branches, so I duly added the ones I wanted and left out the ones I did not. But this failed with configuration file errors. Trial and error apparently shows that there is a limit either the number of branches in the config file or more likely the total number of characters between the opening { and closing }.

    My life would be much easier if I could just build regexs.

提交回复
热议问题