Joey Hess
509b23fa00
catch ClientError from withClientM
...
When getting from a P2P HTTP remote, prompt for credentials when required,
instead of failing.
This feels like it might be a bug in servant-client. withClientM's type
suggests it would not throw a ClientError. But it does in this case.
2024-08-07 11:24:34 -04:00
Joey Hess
76f31d59b0
more fixes to build w/o servant
2024-07-30 12:39:17 -04:00
Joey Hess
456ec9ccf2
typo
2024-07-30 12:18:39 -04:00
Joey Hess
41cef62dad
fix build without servant some more
2024-07-30 10:53:44 -04:00
Joey Hess
640fdffd12
fix build without servant
2024-07-30 09:49:37 -04:00
Joey Hess
cd89f91aa5
remove uuid from annex+http urls
...
Not needed it turns out.
2024-07-28 20:29:42 -04:00
Joey Hess
b13c2407af
p2phttp drop supports checking proof timestamps
...
At this point the p2phttp implementation is fully complete!
2024-07-25 10:11:09 -04:00
Joey Hess
ab22938c0b
fix build without servant
2024-07-24 15:13:02 -04:00
Joey Hess
97836aafba
Remote.Git lockContent works with annex+http urls
2024-07-24 13:42:57 -04:00
Joey Hess
9fa9678585
Remote.Git removeKey works with annex+http urls
...
Does not yet handle drop proof lock timestamp checking.
2024-07-24 12:33:26 -04:00
Joey Hess
cfdb80cd05
progress meter for p2phttp storeKey
2024-07-24 12:14:56 -04:00
Joey Hess
b3915b88ba
Remote.Git storeKey works with annex+http urls
...
Does not yet update progress meter.
2024-07-24 12:05:10 -04:00
Joey Hess
5b1ac1a313
more generic clientGet
2024-07-24 11:10:19 -04:00
Joey Hess
10f2c23fd7
fix slowloris timeout in hashing resume of download of large file
...
Hash the data that is already present in the file before connecting to
the http server.
2024-07-24 11:03:59 -04:00
Joey Hess
7bd616e169
Remote.Git retrieveKeyFile works with annex+http urls
...
This includes a bugfix to serveGet, it hung at the end.
2024-07-24 10:28:44 -04:00
Joey Hess
ad945896c9
avoid needing ifdefs when using P2P.Http.Client
2024-07-24 08:33:59 -04:00
Joey Hess
48657405c6
cache credentials for p2phttp in memory
2024-07-23 18:45:02 -04:00
Joey Hess
75771772ec
remove uuid from url when calling git credential
...
The user doesn't want to see a uuid in the prompt.
Also, when a http server is proxying, multiple remotes will have the
same base url, and the same password will work for them all.
2024-07-23 18:21:01 -04:00
Joey Hess
b89c784a9b
use git credential when p2phttp needs auth
2024-07-23 18:11:15 -04:00
Joey Hess
b7454f1eeb
protocol version fallback on 404
...
and prettified errors
2024-07-23 14:58:49 -04:00
Joey Hess
b0eed55d4f
factor out http server and client into own modules
...
To avoid a cycle when Remote.Git uses the client.
2024-07-23 14:12:38 -04:00
Joey Hess
6bbc4565e6
started wiring p2phttp into Remote.Git
...
but we have a cycle, ugh
2024-07-23 13:53:10 -04:00