Closed eshepelyuk closed 8 years ago
Interesting. Did not know that the GCM had been made available via the msys2 package manager.
~/.gitconfig
.If you're looking for a version of the Git Credential Manager for Windows which doesn't download and install anything, then I recommend using the internal installer directly. The Setup.exe package performs pre-installation and then invokes git-credential-manager.exe deploy --passive --nofail
to perform the actual installation. [1] [2]
Please let me know if this is enough to move you forward or not. Thanks for reporting the issue.
My message maybe confusing, GCM (git credential manager) can not be downloaded using pacman
tool (msys2 package manager). I was downloading installer from this site manually.
Could you please provide a link where I can download the internal installer
you've mentioned.
Could you please provide a link where I can download the internal installer you've mentioned.
There is a gcm-v0.9-beta.3.zip archive downloadable from the releases page which contains all of the contents contained in Setup.exe. Think of it as the ZIP version of the installer.
Downloaded archive, run install.cmd
Output
c:\tmp\4>git-credential-manager.exe deploy
Looking for Git installation(s)...
Deploying from 'c:\tmp\4' to 'C:\Users\Ievgenii.Shepeliuk\bin'.
deployment failed. U_U
Press any key to continue...
git
executable is available in PATH
, but, to highlight it again, it is not installed via git-scm.com
installer.
Use git-credential-manager.exe deploy --passive --nofail
, not install.cmd
nor setup.exe
.
It is the prerequisite checks that you're attempting to avoid.
Let me know how it goes.
Perhaps, setting a msys2 pacman package could be a good idea.
Running git-credential-manager.exe deploy --passive --nofail
I am receiving
deployment failed. U_U
oh :disappointed:
Well that's not happy. Was there any more information?
Is git.exe
on your %path%
?
Are you attempting this with cmd.exe, powershell.exe, or bash.exe as your shell?
git
in my %PATH%git
works fine both from cmd
and `bash, i.e. I can pull, push etccmd.exe
and bash.exe
powershell
, in fact never used itWas there no other spew from the failed attempt? The simple deployment failed. U_U
line is not enough for me to assist with triaging the problem.
Thanks :wine_glass:
Unfortunately, that line is the entire output produced by git-credential-manager.exe deploy --passive --nofail
command, when run in both cmd.exe
and bash
shells.
I'd be glad to provide any other details of my setup, but not the GCM tool output, since I am not able to improve it.
OK try git-credential-manager.exe deploy --nofail
, basically omitting the --passive
flag.
On a related note, I may have found a bug in the current release - thanks to this thread :smile:
Providing output from bash
, in cmd.exe
it is the same.
$ ./git-credential-manager.exe deploy --nofail
Looking for Git installation(s)...
Deploying from 'C:\tmp\4' to 'C:\Users\Ievgenii.Shepeliuk\bin'.
deployment failed. U_U
Press any key to continue...
c:\tmp\4
is a folder when I've unpacked gcm-v0.9-beta.3.zip
and where I execute a command fromC:\Users\Ievgenii.Shepeliuk
is my Windows HOME
foldermsys2
considers user home directory not in C:\Users
, but creates it in own folder, In my case - it is c:\opt\msys64\home\Ievgenii.Shepeliuk
Also, I've tried to create bin
folder in C:\Users\Ievgenii.Shepeliuk
, and then run GCM tool again. Here's output
$ ./git-credential-manager.exe deploy --nofail
Looking for Git installation(s)...
Deploying from 'C:\tmp\4' to 'C:\Users\Ievgenii.Shepeliuk\bin'.
Microsoft.Alm.Authentication.dll
Microsoft.Alm.Git.dll
Microsoft.IdentityModel.Clients.ActiveDirectory.dll
Microsoft.IdentityModel.Clients.ActiveDirectory.WindowsForms.dll
git-credential-manager.exe
5 file(s) copied
Fatal: ArgumentOutOfRangeException encountered.
oh cute :disappointed:
Thanks this gives a lot to work with. I'll see what I can do.
Thank you for the patience. Hope I can help with debug and improve GCM :)
I have exactly the same problem right now with gcm-v0.9-beta.3.zip!
Likely resolved by #111 + git config credential.modalprompt true
being set.
Actually there's 2 issues that preventing credential manager usage when one installs git using
msys2
package manager instead ofgit for windows
installergit-credential-manager
installler forces installation ofgit-scm
, so it should be optionalgit-credential-manager
can not be applied when downloded as an archive. It generates an error, that can not be seen becausecmd
window closes too quick.Old version works fine with such
git
installation.