git-svn --ignore-paths

后端 未结 7 1586
悲哀的现实
悲哀的现实 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 05:05

    Would someone be kind enough to comment on why the regex's are not suppressing fetches on the paths specified in the ignores-regex.

    This path

    ACME4.4/source/database/mssql/components/functions/vssver.scc
    

    was fetched despite the --ignore-paths argument because it just didn't match the regex.

    There is no - between "ACME" and "4.4" in this path. And if the regex is case-sensitive, "ACME" won't match "Acme".

    This should have worked better:

    git svn fetch --ignore-paths="ACME4.x|ACME5.0|ACME5.1|ACME5.2|ACME5.3|ACME5.4"
    

    Note that --ignore-paths targets file names, not tags.


    (I bet you solved the issue long ago - this post is 4 years old).

    0 讨论(0)
提交回复
热议问题