frej / fast-export

A mercurial to git converter using git-fast-import
http://repo.or.cz/w/fast-export.git
808 stars 255 forks source link

Double Quotes in " branch names are causing the lock files failing to create on Windows (git-bash) #250

Closed fahadash closed 3 years ago

fahadash commented 3 years ago

I am getting a bunch of errors like the following

error: cannot lock ref 'refs/heads/branch_namewith"double quotes"_failing': Unable to create 'C:/Code/Conversion/Repo/.git/refs/heads/branch_namewith"double quotes"_failing.lock': Invalid argument

frej commented 3 years ago

According to Wikipedia " is not allowed in Windows filenames, and the way git works, branches are represented by a file in the filesystem. If you want to preserve the branch names you have to switch to an OS which allows the quotes. If you don't need to preserve the names you can use a branch mapping file and/or a plugin to rename the problematic branches.

Please close this issue if your question has been answered.

fahadash commented 3 years ago

Thanks