reuse http url password for p2phttp url when on same host

When remote.name.annexUrl is an annex+http(s) url, that uses the same
hostname as remote.name.url, which is itself a http(s) url, they are
assumed to share a username and password.

This avoids unnecessary duplicate password prompts.
This commit is contained in:
Joey Hess 2024-11-19 15:27:26 -04:00
parent 3510072883
commit b8a717a617
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
6 changed files with 55 additions and 4 deletions

View file

@ -13,3 +13,6 @@ I see some ways to address this:
3. Perhaps most elegantly: make p2phttp support serving multiple repositories, so that repositories could share the same annexurl and therefore share credentials
[[!tag projects/INM7]]
> I have implemented reuse of the remote.name.url password for
> remote.name.annexurl when they are on the same host. [[done]] --[[Joey]]