p2phttp remotes are not readonly

That prevented testremote from working when remote.name.url = http://..
This commit is contained in:
Joey Hess 2024-07-29 10:52:37 -04:00
parent 4f3ae96666
commit 6af44b9de6
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38

View file

@ -227,7 +227,7 @@ gen r u rc gc rs
, localpath = localpathCalc r
, getRepo = getRepoFromState st
, gitconfig = gc
, readonly = Git.repoIsHttp r
, readonly = Git.repoIsHttp r && not (isP2PHttp' gc)
, appendonly = False
, untrustworthy = False
, availability = repoAvail r