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

Push looks for credential storage in wrong directory. #1492

Closed
shalgrim opened this issue Dec 22, 2012 · 18 comments
Closed

Push looks for credential storage in wrong directory. #1492

shalgrim opened this issue Dec 22, 2012 · 18 comments

Comments

@shalgrim
Copy link

I can no longer push because when I push it looks for git-credential-winstore.exe underneath C:\Program Files (x86), but I don't have that directory on my machine, I just have C:\Program Files.

This is what my window reads:

"C:\Program Files\Git\bin\git.exe" push --recurse-submodules=check --progress "CodeOrigin" master:master
"C:/Program Files (x86)/GitExtensions/GitCredentialWinStore/git-credential-winstore.exe" get: C:/Program Files (x86)/GitExtensions/GitCredentialWinStore/git-credential-winstore.exe: No such file or directory

EDIT:
Immediately after posting that, I found this in my .gitconfig

[credential]
    helper = !\"C:/Program Files (x86)/GitExtensions/GitCredentialWinStore/git-credential-winstore.exe\"

However, removing the " (x86)" or removing the two lines altogether just causes push to hang completely

@ericridgeway
Copy link

+1 I have this same problem

Yesterday I uninstalled Git Extensions, (plus the other 2, mysysgit and kdiff), and reinstalled from scratch using the Git Extensions installer

This is the error I get

I noticed the problem when I tried to push to github for the first time. It never happened when I pushed to bitbucket. That may be completely unrelated though

@KindDragon
Copy link
Contributor

We support HTTP authentification using only git-credential-winstore. If it doesn't work, push will hang.

Please use SSH instead.

@shalgrim
Copy link
Author

I solved this problem by using bitbucket.

@ericridgeway
Copy link

The problem was caused by this:
I originally installed to D:\Program Files

Later I uninstalled using the normal uninstalled

Then I reinstalled using the normal installer, but to C:\Program Files (x86)

He WAS NOT SMART ENOUGH to get all references to the new install location, and this error happened

When I checked my D:\Program Files directory, sure enough, there was a Git and a Git Extensions directory with a few odds and ends still hanging around
-> (yes, I know mysysgit is a diggerent install all on it's own, but I installed it originally using just the 1 master installer: Git Extensions, who then also installed Git and KDiff for me)

The workaround was to uninstall AGAIN, and reinstall back on D drive, but this is a stupid thing to have to do, and does not give me warm fuzzy feelings if I ever have to do another uninstall

@patricktokeeffe
Copy link

I am experiencing this too using v2.41 on WinXP (x86). My .gitconfig file contained the [credential] line and the helper path contained "Program Files (x86)", same as OP (it's worth noting however my .gitconfig was generated on an x64 machine (roaming profiles)). After removing the credential lines, the push still hangs while leaving behind a blank command window. No actual errors are generated AFAICT.

I am able to push over http and receive the expected OpenSSL login using v2.33 on that x64 machine but since that is also the machine hosting the repos, it is difficult to ascertain why it works 'there' but not 'here'. Is it the version? The platform? Or because the repos are actually local?

It's not the firewall or my SSL login credentials: I can connect just fine using ssh from the cmd prompt.

@KindDragon, there is no subdirectory "GitCredentialWinStore" in the installation folder of either v2.33 (on my x64 machine) or v2.41 (on my x86 box). I can't find any git-credential-winstore.exe either. Could you briefly explain how to use/where is git-credential-winstore?

@KindDragon
Copy link
Contributor

@KindDragon, there is no subdirectory "GitCredentialWinStore" in the installation folder of either v2.33 (on my x64 machine) or v2.41 (on my x86 box). I can't find any git-credential-winstore.exe either. Could you briefly explain how to use/where is git-credential-winstore?

You use old GitEx version. Please update to 2.43/2.44.

@sudanthaa
Copy link

WORKAROUND .....

  • Make a symbolic link to Program Files (x86), with bash friendly name
    • Run cmd.exe as administrator
    • Go to C:\
    • Type mklink /D progam_files_x86 "Program Files (x86)"
  • Override git config
    • Go to Git Bash
    • Type git config credential.helper C:/progam_files_x86/GitExtensions/GitCredentialWinStore/git-credential-winstore.exe

You can now push to origin

@adamtal3
Copy link

adamtal3 commented Jan 5, 2014

@sudanthaa - Great!

One thing I made different was the last command, I've added "--global" after the "git config" because it's a problem that will accure in any repository and we should fix it globaly :)

@totty90
Copy link

totty90 commented May 19, 2014

Still a problem, is looking in the wrong directory. I've installed once the gitext and then after 1 year stop working, then I've installed this new version and worked for some time. Now it doesn't work again. And only happens for a specific repo.

@indrora
Copy link

indrora commented Jun 18, 2014

Running into this issue as well, Win8.1 x64. I only found out about this because I had installed GItExtensions after I installed SourceTree. SourceTree was failing pushes.

Shouldn't there be an option to use/not use this during installation?

@indrora
Copy link

indrora commented Jun 18, 2014

This also fails after uninstallation, causing git to fail un-gracefully later on.

@santoch
Copy link

santoch commented Aug 27, 2014

Why are these all being closed WITHOUT being fixed?

@KindDragon
Copy link
Contributor

This bug fixed in 2.48

@ghost
Copy link

ghost commented Oct 15, 2014

@KindDragon - No, it isn't. I just pulled down 2.48 on a clean machine. Installed (selected the win credential store option) and ran. It give me the error:
"C:/Program Files (x86)/GitExtensions/GitCredentialWinStore/git-credential-winstore.exe" get: C:/Program Files (x86)/GitExtensions/GitCredentialWinStore/git-credential-winstore.exe: No such file or directory
And keeps repeatedly asking me for a password, which is especially vexing on the drop-down window on the 'Clone' operation.

@jnsn
Copy link

jnsn commented Oct 20, 2014

@DRAirey1 is right.

The git-credential-winstore.exe file is not present in the 2.48 MSI installer which results in the beforementioned error message. That is, I extracted the files from the MSI using 7-zip but there's no sign of the file.

@KindDragon
Copy link
Contributor

The git-credential-winstore.exe file now only in Complete installer

@increddibelly
Copy link

increddibelly commented Nov 21, 2017

The git-credential-winstore.exe file now only in Complete installer

funny that.

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

12 participants