git-svn --ignore-paths

后端 未结 7 1582
悲哀的现实
悲哀的现实 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).

提交回复
热议问题