This repository has been archived by the owner on Jul 15, 2023. It is now read-only.
credential.namespace
setting ignored when coming from conditionally included config file
#912
Open
2 of 6 tasks
Which Version of GCM are you using ?
1.20.0
Which service are you trying to connect to
Expected behavior
I'm using conditional includes in my
~/.gitconfig
file to have different settings depending on their path. This works for most settings, but not forcredential.namespace
.If I put:
in my
~/.gitconfig
file and login, I see in the Windows Credential Manager (the Control Panel applet) credentials forfoo:http://github.com
:I expect the same to happens if I put those two line in a separate file and include it in my
~/.gitconfig
file.Actual behavior
If I put the same two lines in a different file and include it in my
~/.gitconfig
file and conditionally include it GCM tries to re-authenticate, and once I enter my credentials again we see that it additionally createsgit:https://github.com
:Set the env variables GCM_TRACE=1 and GIT_TRACE=1 and run your git command. Redact any private information and attach the log
The part that is missing is the middle line in the following snippet:
That's what happens when I put the configuration directly in the
~/.gitconfig
file or include it unconditionally.The text was updated successfully, but these errors were encountered: