Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

GCM doesn't prompt for credentials #895

Open
Duckle29 opened this issue Mar 30, 2020 · 0 comments
Open

GCM doesn't prompt for credentials #895

Duckle29 opened this issue Mar 30, 2020 · 0 comments

Comments

@Duckle29
Copy link

Hi, and thanks for the time in advance :)

I'm trying to get GCM working, as I'm tired of using SSH with ssh agents, however GCM never pops up.

I'm on a brand new install of w10, git has been installed via scoop (homebrew-like package manager for windows)

And I primarily use powershell core 7

GCM

git credential-manager version
Git Credential Manager for Windows version 1.20.0

Environment

GCM_TRACE           D:\projects\Git.log
GIT_TRACE           D:\projects\Git.log
GIT_INSTALL_ROOT    D:\dev\scoop\apps\git\current

Git config

file:D:/dev/scoop/apps/git/2.26.0.windows.1/etc/gitconfig       core.symlinks=false
file:D:/dev/scoop/apps/git/2.26.0.windows.1/etc/gitconfig       core.autocrlf=true
file:D:/dev/scoop/apps/git/2.26.0.windows.1/etc/gitconfig       core.fscache=true
file:D:/dev/scoop/apps/git/2.26.0.windows.1/etc/gitconfig       color.diff=auto
file:D:/dev/scoop/apps/git/2.26.0.windows.1/etc/gitconfig       color.status=auto
file:D:/dev/scoop/apps/git/2.26.0.windows.1/etc/gitconfig       color.branch=auto
file:D:/dev/scoop/apps/git/2.26.0.windows.1/etc/gitconfig       color.interactive=true
file:D:/dev/scoop/apps/git/2.26.0.windows.1/etc/gitconfig       help.format=html
file:D:/dev/scoop/apps/git/2.26.0.windows.1/etc/gitconfig       diff.astextplain.textconv=astextplain
file:D:/dev/scoop/apps/git/2.26.0.windows.1/etc/gitconfig       rebase.autosquash=true
file:D:/dev/scoop/apps/git/2.26.0.windows.1/etc/gitconfig       filter.lfs.clean=git-lfs clean -- %f
file:D:/dev/scoop/apps/git/2.26.0.windows.1/etc/gitconfig       filter.lfs.smudge=git-lfs smudge -- %f
file:D:/dev/scoop/apps/git/2.26.0.windows.1/etc/gitconfig       filter.lfs.process=git-lfs filter-process
file:D:/dev/scoop/apps/git/2.26.0.windows.1/etc/gitconfig       filter.lfs.required=true
file:D:/dev/scoop/apps/git/2.26.0.windows.1/etc/gitconfig       credential.helper=manager
...
name email gpg key
...
file:C:/Users/mikke/.gitconfig  credential.helper=manager
file:C:/Users/mikke/.gitconfig  commit.gpgsign=true
file:C:/Users/mikke/.gitconfig  gpg.program=D:\dev\scoop\apps\gpg\current\bin\gpg.exe
file:C:/Users/mikke/.gitconfig  filter.lfs.clean=git-lfs clean -- %f
file:C:/Users/mikke/.gitconfig  filter.lfs.smudge=git-lfs smudge -- %f
file:C:/Users/mikke/.gitconfig  filter.lfs.process=git-lfs filter-process
file:C:/Users/mikke/.gitconfig  filter.lfs.required=true
file:C:/Users/mikke/.gitconfig  winupdater.recentlyseenversion=2.26.0.windows.1
file:C:/Users/mikke/.gitconfig  core.symlinks=true
file:C:/Users/mikke/.gitconfig  core.autocrlf=input

Where git

cmd /c where git
D:\dev\scoop\shims\git.exe

Trace with GIT_TRACE and GCM_TRACE set:

14:39:27.770332 exec-cmd.c:237          trace: resolved executable dir: D:/dev/scoop/apps/git/2.26.0.windows.1/mingw64/bin
14:39:27.771332 git.c:439               trace: built-in: git clone https://duckle29@github.com/duckle29/qmk_cli
14:39:27.785336 run-command.c:663       trace: run_command: git remote-https origin https://duckle29@github.com/duckle29/qmk_cli
14:39:27.791337 exec-cmd.c:237          trace: resolved executable dir: D:/dev/scoop/apps/git/2.26.0.windows.1/mingw64/libexec/git-core
14:39:27.792337 git.c:703               trace: exec: git-remote-https origin https://duckle29@github.com/duckle29/qmk_cli
14:39:27.792337 run-command.c:663       trace: run_command: git-remote-https origin https://duckle29@github.com/duckle29/qmk_cli
14:39:27.800340 exec-cmd.c:237          trace: resolved executable dir: D:/dev/scoop/apps/git/2.26.0.windows.1/mingw64/libexec/git-core
14:39:28.964601 run-command.c:663       trace: run_command: git index-pack --stdin -v --fix-thin '--keep=fetch-pack 17432 on <DESKTOPHOSTNAME>' --check-self-contained-and-connected
14:39:28.970603 exec-cmd.c:237          trace: resolved executable dir: D:/dev/scoop/apps/git/2.26.0.windows.1/mingw64/libexec/git-core
14:39:28.971603 git.c:439               trace: built-in: git index-pack --stdin -v --fix-thin '--keep=fetch-pack 17432 on <DESKTOPHOSTNAME>' --check-self-contained-and-connected
14:39:29.274670 run-command.c:663       trace: run_command: git rev-list --objects --stdin --not --all --quiet --alternate-refs '--progress=Checking connectivity'
14:39:29.280671 exec-cmd.c:237          trace: resolved executable dir: D:/dev/scoop/apps/git/2.26.0.windows.1/mingw64/libexec/git-core
14:39:29.281671 git.c:439               trace: built-in: git rev-list --objects --stdin --not --all --quiet --alternate-refs '--progress=Checking connectivity'
14:39:32.183324 exec-cmd.c:237          trace: resolved executable dir: D:/dev/scoop/apps/git/2.26.0.windows.1/mingw64/bin
14:39:32.183324 git.c:703               trace: exec: git-credential-manager version
14:39:32.184324 run-command.c:663       trace: run_command: git-credential-manager version
14:39:32.224333 ...\Common.cs:744       trace: [Main] git-credential-manager (v1.20.0) 'version'

As you can see from the trace, I'm trying to clone a repo with the https url, but GCM never gets called. It does get called at the end when I run the version command.

Windows credential store also seems empty of github related creds.

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

No branches or pull requests

1 participant