【问题标题】:ignoring some branches git svn fetch忽略一些分支 git svn fetch
【发布时间】:2017-08-03 11:21:16
【问题描述】:

我正在使用 svn 存储库,当我运行 git svn fetch 命令时收到错误:

Found possible branch point: https://svn.host.ru/repo/trunk => https://svn.host.ru/repo/branches/branch_name, 13439
Found branch parent: (refs/remotes/origin/branch_name) a081660107eb24a999957a6874bdf4dd53568436
Following parent with do_switch
Successfully followed parent
fatal: update_ref failed for ref 'refs/remotes/origin/branch_name': refusing to update ref with bad name refs/remotes/origin/branch_name
update-ref -m r13440 refs/remotes/origin/branch_name 5858b0838db06456ae1de9395a46d1d3fe3c2017: command returned error: 128

我理解它,因为名称 branch_name 实际上类似于 ~titanbig\-?\d+\.ru - 包含错误符号 - 我该如何解决这个问题?也许有一些选项可以跳过这些糟糕的分支?

【问题讨论】:

标签: git svn git-svn


【解决方案1】:

使用--ignore-paths 开关或svn-remote.<name>.ignore-paths 配置选项。你可以在那里给出一个 perl 正则表达式来指定要忽略的路径。如需更多信息,请参阅https://git-scm.com/docs/git-svn

【讨论】:

    猜你喜欢
    • 2016-10-08
    • 2014-12-24
    • 1970-01-01
    • 2013-07-01
    • 1970-01-01
    • 1970-01-01
    • 2011-01-03
    • 1970-01-01
    • 2016-04-04
    相关资源
    最近更新 更多