I'm using git under cygwin but it's not passing the correct path to my editor for commit messages.
I'm working in a test repository located on my drive at:
d:\X\git\myproject
in the cygwin terminal it shows this path as:
/cygdrive/d/X/git/myproject
When I commit without the -m flag (so that it opens up my editor for me to enter a message), my editor tries to write a file to the wrong path:
d:\cygdrive\d\x\git\myproject\.git\commit_editmsg
note the addition of "\cygdrive\d"
How can I make git pass the windows path (rather than the cygwin/unix path) to my editor?