Pull request: Fix for "Cloning HG repo to Git creates "uncheck-out-able" repositories". And upgrade for filenames transcoding #79
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi, everybody!
I have two suggestion for you.
First: A bug-fix for a problem on Windows systems:
because
crushes paths (e.g. /bin/foo-file.py => \bin\foo-file.py), making them unknown for Git repo (git uses "/ " for storing file paths instead of "\") on check-out. In reply to "checkout" command it generates error message:
first commit fixes that.
A solution for cases when HG repository contains files with names in non Utf-8 encoding and containing culture-related symbols (e.g. cp1251 "Тестовый файл.txt").
In this cases, cloning a HG repository to git with git-remote-hg, produces unreadable filenames in git
Solution bidirectionally solves this problem by transcoding filenames on-the-fly. All you need is to add to .git/config or to a global one options: