无法创建git .lock文件 - 文件名太长

时间:2016-11-28 08:21:31

标签: git git-svn

我需要将大型svn repo转换为git。我运行git svn clone,大约30个小时,然后发生此错误:

fatal: update_ref failed for ref 'refs/remotes/svn/trunk@26379------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------': cannot lock ref 'refs/remotes/svn/trunk@26379------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------': Unable to create '/usr/local/svn2git_branches/repo/.git/refs/remotes/svn/trunk@26379------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------.lock': File name too long
update-ref -m r23592 refs/remotes/svn/trunk@26379------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ a68b4ec92e6f0033997c7d6242770567274c5d84: command returned error: 128

git svn fetch会导致相同的结果。

解决方法

Upd。我在Docker容器中的Ubuntu中运行它。

1 个答案:

答案 0 :(得分:0)

尝试相同的转换(假设这是一次导入)SubGit

对于路径长度问题(甚至在Ubuntu上),它应该更健壮。
最坏的情况:您仍然可以skip a problematic revision and resume the process