Joel Reyes
Joel Reyes

Reputation: 31

Git - fatal: Unable to create '/path/my_project/.git/index.lock': No such file or directory read tree xxxx command returned error: 128

I'm converting my SVN repo into git (bitbucket) following this tutorial: https://www.atlassian.com/git/tutorials/migrating-convert/

But I keep getting this message when runing the command : git svn clone --stdlayout --authors-file=authors.txt --prefix=origin/

Upvotes: 3

Views: 984

Answers (1)

SyntaX
SyntaX

Reputation: 2120

The answer is somewhat explained in the comment.

Similar issues are experienced on Windows system due to its limitations like:

  • Some of the Windows APIs are limited to 260 symbols for file path name. So git can't create files with names longer than 260 symbols. NTFS file system actually supports longer names (32k).
  • Windows directory allows Space in between like my folder.
  • Windows file and folder names that begin or end with the ASCII Space (0x20) are saved without these characters.

Some of the Workarounds are:

  • Move the git directory closer to the drive, in order to keep the file name within 260 symbols.
  • Creating the whitespace directory manually using tools like FAR, GnuWinwhich can make a directory

Reference:

Upvotes: 1

Related Questions