简体   繁体   中英

“Command returned error:127” while executing git svn clone command

Objective: To migrate from svn to gitlab with all the svn history.

Approach: Used the following command:

git svn clone -r<intital revision number>:HEAD --authors-file=authors.txt <svn URL like http://svn/Trunk> <Destination Folder like C:/Project>

After almost 1 hour of fetching data from the svn, an error occurred:

ls-tree -z asdafsdfsdfsdfsdf ./xyz.java: command returned error: 127

Any suggestion to overcome the solution will be very helpful.

The below command helped in resolving the issue:

git svn gc

After the above command, this command is triggered and the issue didn't occur.

git svn clone -r<intital revision number>:HEAD --authors-file=authors.txt <svn URL like http://svn/Trunk> <Destination Folder like C:/Project>

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