-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
getent
is getting called when git-bash is run, which causes an error if Cygwin is installed
#1226
Comments
I've been getting the error above in recent git-for-windows x64 releases. My Cygwin install is also x64. I did the usual "DLL base address" dance, but that didn't help. I reinstalled (with the concomitant reboots), and made sure it should only work when the git-bash link is used (git for windows isn't anywhere in my path). Still, this error persists. I updated Cygwin - has the very latest DLL. Not sure why git is using a cygwin DLL from over a year ago but ok, still should've been a problem in Git-2.11.1-64-bit. But if I remove Cygwin from my path, it works. Which is nice but unacceptable - and besides, git-bash should put itself first in the path to prefer its own command set, thus never seeing Cygwin. Which is what it appears to be doing, except this So I opened a cmd shell, removed Cygwin from the path, and started git-bash from that (as it inherits the shell environment that way). No more
But wait - if I am starting to think that this |
Update: the exact commit in the SDK where this problem starts appears to be git-for-windows/git-sdk-64@abcb646, wherin this
Note: if I manually remove that |
One more bit of into: the system There's no way I've found to trim a path before running a shell, and taking Cygwin out of the path for the sake of this spurious call isn't a good option either. I can hack out the code in If |
Now that I know what to look for, it seems this And for all that it's a bit superfluous... it simply detects if bash is being run as Administrator, and updates the prompt to signify that. Which is great if MSYS2's |
I've opened a preliminary PR which adds |
Though it's a drop in the bucket in terms of package sizes on Windows, I'm surprised that it adds 10 MB - what all's it adding besides You could remove the getent calls, but you'll end up carrying that modified |
The |
Yeah, on further examination I don't think there's any way the addition of the I'll be unavailable for the remainder of today and tomorrow, but I'll take another look on Sunday and try to figure out what's going on. |
dscho has expressed a preference to remove the |
Closed via PR git-for-windows/build-extra#146 |
Thanks for getting this resolved - looking forward to seeing the fix in a future build! |
Git Bash [no longer tries to use the `getent` tool](git-for-windows/git#1226) which was never shipped with Git for Windows. Signed-off-by: Johannes Schindelin <[email protected]>
Setup
to the issue you're seeing?
I have Cygwin 64-bit installed - it's in the path too (near the end).
Details
git-bash
Minimal, Complete, and Verifiable example
this will help us understand the issue.
What did you expect to occur after running these commands?
Just a git-bash command prompt
What actually happened instead?
This problem is probably due to using incompatible versions of the cygwin DLL.
Search for cygwin1.dll using the Windows Start->Find/Search facility
and delete all but the most recent version. The most recent version should
reside in x:\cygwin\bin, where 'x' is the drive on which you have
installed the cygwin distribution. Rebooting is also suggested if you
are unable to find another cygwin DLL.
(then I get the command prompt)
URL to that repository to help us with testing?
n/a
The text was updated successfully, but these errors were encountered: