New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Interactive rebase does not work under windows #463
Comments
Thanks for the careful diagnosis. Can you show me an example of what the windows path looks like, and what the linux path should look like? is it,
which should instead be
? If so, we can probably do a platform check there and have a function that tweaks the variable we emit into the environment. what do you think? |
Tested by including the merging the changes to cmds.py into my installed version of git-cola. |
Thanks.. I'm not actually hard-coding any paths, just doing a conversion :-) thanks for testing, and thanks for the report. |
Fails with network paths! Cure: in cmds.py:
|
We need to always replace "\\" with "/" on Windows. Adjust unix_path() so that the backslash-to-forward-slash replacement is done before any other munging is performed. Closes git-cola#463 Reported-by: Johannes Loehnert <loehnert.kde@gmx.net> Signed-off-by: David Aguilar <davvid@gmail.com>
Nice catch @loehnertj I just pushed up a fix. Let me know if that works for you. |
This is caused by the fact that git-cola sets GIT_SEQUENCE_EDITOR to git-xbase in cmds.py, but it is set to the windows path while the variable is used inside a shell script in git which requires linux style paths.
I got it to work by setting GIT_SEQUENCE_EDITOR in my global windows environment and removing the compat.setenv('GIT_SEQUENCE_EDITOR',...) and the compat.unsetenv('GIT_SEQUENCE_EDITOR') from cmds.py.
The text was updated successfully, but these errors were encountered: