Support multiple accounts per domain
A8795876 opened this issue · 4 comments
This is really useful, I've been having trouble using netrc with multiple accounts,
not to mention the cleartext issue.
The helper doesn't consider the common case of having multiple accounts per domain.
For example, I have several github accounts.
In the config file the domain is matched against the whole URL. So you could add rules based on the complete URL to a specific github project to associate a certain password store entry with a certain github project. Does this solve your issue?
Oh no, I am wrong. The git request doesn't event send me the requested path on the server despite what is said in the API documentation: https://www.kernel.org/pub/software/scm/git/docs/git-credential.html. At least for a push operation.
You need to set credential.useHttpPath = true
in your git config. Afterwards the whole path is used for searching now. Does this help?
That'll work, Thanks!