Closed amyspark closed 5 years ago
I tried to reproduce with an environment as in issue #22; so windows Git 2.20.1 and windows CPython 2.7.15 installed. I placed git-remote-hg
and git-hg-helper
in C:\Pyhon27\Scripts
(which is on the PATH
). There was no problem cloning a hg repo, whether from a CMD shell or a git bash shell.
On the other hand, simply executing git-remote-hg
is possible in git bash though not in CMD, which is as can be expected. So it is down to git
being clever (or not) when it invokes the remote helper. Perhaps your mileage/version or git setup differs in that respect?
The problem may be in git-remote-hg
's shebang #!/usr/bin/env python2
. Windows Python does not create pythonXY
executables (https://www.python.org/dev/peps/pep-0394/ is UNIX-only). There was a discussion on adding this feature to Windows, too, in the last year (can't find it now) which didn't end in anything in particular.
I mentioned in https://github.com/mnauw/git-remote-hg/issues/22 that I had to make a python2
symlink to make git-remote-hg
work.
If this is added to installation instructions, that should be a fix to this issue.
Ah, thanks, forgot about that one. So used to having python2 (link) around ...
I've installed this script in Windows 7 with Python 2.7.15.
D:\Python27\Scripts
is on thePATH
and all Python files are associated with 3.7's Python Launcher.The script install successfully, but when trying to clone a repo, I get:
The script can be run if I use
py -2 git-remote-hg
or any other way, just not through CMD.