简体   繁体   中英

Unable to create git .lock file - File name too long

I need to convert large svn repo into git. I run git svn clone , it works about 30 hours, and then this error occurs:

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 leads to same result.

Workaround?

Upd. I run this in Ubuntu in docker container.

Try the same conversion (assuming this is a one-time import) SubGit

It should be more robust to path length issues (even on Ubuntu).
Worst case: you can still skip a problematic revision and resume the process .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM