Skip to content
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

/usr/bin/git calling git-credential-manager.exe via pipe hangs. #3078

Closed
notlaforge opened this issue Apr 4, 2018 · 1 comment
Closed

/usr/bin/git calling git-credential-manager.exe via pipe hangs. #3078

notlaforge opened this issue Apr 4, 2018 · 1 comment

Comments

@notlaforge
Copy link

  • Your Windows build number: Microsoft Windows [Version 10.0.16299.309]

In order to use git both in WSL and in Windows with the same auth credentials, I tried to install https://github.com/Microsoft/Git-Credential-Manager-for-Windows and then point both gits to it.

The way this works is that one adds this to ~/.gitconfig:

[credential]
        helper = manager

Git will then communicate with git-credential-$HELPER via pipe. In my $PATH in WSL I have a link to git-credential-manager.exe so that /usr/bin/git can execute it. When it does run it (say, when I do git push) it jugs hangs there.

As a workaround I've replaced the ~/bin/git-credential-manager -> /mnt/c/.../git-credential-manager.exe symlink with the following shell script:

#!/bin/sh
tee .git/creds | powershell.exe /c "Start-Process -Wait -FilePath 'C:\Program Files\Git\mingw64\libexec\git-core\git-credential-manager.exe' -NoNewWindow -ArgumentList $@ -RedirectStandardInput .git/creds"
rm -f .git/creds

This seems to work just fine (at the expense of temporarily keeping the credentials on disk).

I am at a loss as to why the pipe doesn't cross the interop. Help?

Due to the nature of the strace output, I'll send it over to the secure@ address.

@therealkenc
Copy link
Collaborator

16299

That's #2370 #2406 et al. Addressed in 17618.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants