2017-08-03 30 views
0

我與SVN倉庫的工作,當我運行的git的svn fetch命令我收到錯誤:忽略一些分支機構的Git SVN取

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 - 包含錯誤的符號 - 我怎麼解決這個問題?也許有些選項可以跳過這樣糟糕的分支?

+0

您是否嘗試閱讀文檔? https://git-scm.com/docs/git-svn#git-svn---ignore-refsltregexgt –

回答

0

使用--ignore-paths開關或svn-remote.<name>.ignore-paths配置選項。你可以在那裏給出一個perl regex來指定要忽略的路徑。欲瞭解更多信息,請參閱https://git-scm.com/docs/git-svn