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
"/" is replaced with the directory path of Git installation when using MinGW64 Bash #3619
Comments
|
That's the posix to windows path conversion. Use https://github.com/git-for-windows/build-extra/blob/main/ReleaseNotes.md#known-issues |
|
Not a chance we would get a better workaroud? WTF? Even I just don't get a sense how come |
|
This undesired path conversion is not a user's fault. |
Unlikely. Well, maybe the trick with the two slashes would work here.
Because echo is a shell builtin. Path conversion only happens when calling non-msys2 programs.
Because the msys2 runtime has no way of knowing what git is supposed to do with that argument that looks likee a posix path. |
Well it is listed under "known issues", so we do recognize it's an issue, but likely one that we won't have a solution for within the next couple of years. |
|
Thanks for the answer. Then can we make Windows git to use |
Absolutely not. That would break a lot of things.
They don't have to and in fact shouldn't.
That it does what you want it to do in this one specific edgecase, does not mean you should use it all the time, for everything. |
|
Another user might be equally focused on only their use case and say: "why on Earth would anybody start their commit message with a slash? Just don't!". We cannot cater to everybody's favorite workflow at the same time, we have to make a compromise. And changing a default that literally millions of users have grown accustomed to, over the course of more than 14 years, sounds like a really foul compromise to me. I won't do that. I owe that to the existing users. |
Setup
defaults?
to the issue you're seeing?
It's only an average desktop environment.Details
MinGW64 BashMinimal, Complete, and Verifiable example
this will help us understand the issue.
git commit -m "/somecommit"git commit -m "D:/Program Files/Git/somecommit"URL to that repository to help us with testing?
This happens in any repository.The text was updated successfully, but these errors were encountered: