-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Add Git credential cache as backing store on Linux #287
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good so far.. some comments.
src/shared/Microsoft.Git.CredentialManager/CredentialCacheStore.cs
Outdated
Show resolved
Hide resolved
src/shared/Microsoft.Git.CredentialManager/Interop/Linux/LinuxCredentialStore.cs
Outdated
Show resolved
Hide resolved
Co-authored-by: Matthew John Cheetham <mjcheetham@outlook.com>
Co-authored-by: Matthew John Cheetham <mjcheetham@outlook.com>
Tested on an Ubuntu 20.04 machine against a private Azure Repos instance. I don't have a clear idea of how or what needs unit testing, and suggestions would be most welcomed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me! Left a question on the value of the store option, and also we're missing updates to the other settings/reference docs for the new options.
In terms of unit tests.. I am not sure it's worth the effort here, given this is largely around process creation and stdin/out forwarding.
src/shared/Microsoft.Git.CredentialManager/Interop/Linux/LinuxCredentialStore.cs
Outdated
Show resolved
Hide resolved
env var for config is still the long form, but the git option is already namespaced to `credential` so it was also shortened.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixes #261
git credential-cache exit
, are credentials dropped?--timeout
via environment variable works?