Fix support for readonly git remotes

Boolean blindness oops.

(Reversion in version 8.20210621)

Sponsored-by: Dartmouth College's Datalad project
This commit is contained in:
Joey Hess 2021-08-30 12:34:19 -04:00
parent b083f9ec2f
commit 837116ef1e
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
3 changed files with 17 additions and 2 deletions

View file

@ -0,0 +1,13 @@
[[!comment format=mdwn
username="joey"
subject="""comment 3"""
date="2021-08-30T16:24:52Z"
content="""
reversion in [[!commit f46e4c9b7c]], which reversed some logic and made
database reads be treated as database writes, so they failed on permission
denied, rather than the right behavior of returning DbUnavailable. Fixed that.
I have not been able to reproduce the other error involving
opening a temp file. All I can tell from the message is that it's writing
to some file in .git/annex via a temp file in the same directory.
"""]]