git-annex/Remote
Joey Hess 2aeb79249b
external: stop storing readonly=true in remote.log
readonly=true is used to make an external special remote that does not
need the external program to be installed. It was stored in the
remote.log by default, and so every time it was specified in an
enableremote or initremote, whatever value was used became the new
default for subsequent enableremotes of that remote.

That was surprising, and I consider it to be a bug.

It does not make much sense to pass it to initremote because then how
would you populate that remote with anything? You would have to
enableremote elsewhere, and store content there. I'm assuming nobody
used it that way.

Someone might rely on passing it to enableremote once, and then that
being inherited in other clones. But that is not how it's documented to
be used. It is barely documented in git-annex at all, only in the
external special remote protocol, and the documentation there says to
"Document that this external special remote can be used in readonly
mode." (by the user of it passing readonly=true to enableremote). The
one external special remote that I know of that does document that is
<https://github.com/bgilbert/gcsannex> (the one that motivated adding
it). That one's docs do say to pass it to enableremote.

So, it seemed safe to make this behavior change. If someone was in fact
relying on one of those behaviors, all their current repos will still
work as they configured them (although they will need to deal
with the related change in 9f3c2dfeda).
In new clones, they will find enableremote fails, complaining the
external program is not in path. An easy enough problem to recover from.
2020-04-23 15:21:26 -04:00
..
Directory some easy createDirectoryUnder conversions 2020-03-05 15:20:10 -04:00
External add LISTCONFIGS to external special remote protocol 2020-01-17 16:07:17 -04:00
Helper fix builds build 2020-03-10 13:50:46 -04:00
Rsync fix windows build 2020-01-01 14:27:03 -04:00
WebDAV more RawFilePath 2019-12-18 17:10:28 -04:00
Adb.hs adb: Better messages when the adb command is not installed 2020-04-02 10:48:28 -04:00
BitTorrent.hs fix encryption of content to gcrypt and git-lfs 2020-02-26 18:05:36 -04:00
Bup.hs fix all remaining -Wincomplete-uni-patterns warnings 2020-04-15 13:55:08 -04:00
Ddar.hs fix encryption of content to gcrypt and git-lfs 2020-02-26 18:05:36 -04:00
Directory.hs some easy createDirectoryUnder conversions 2020-03-05 15:20:10 -04:00
External.hs external: stop storing readonly=true in remote.log 2020-04-23 15:21:26 -04:00
GCrypt.hs Fix a potential failure to parse git config 2020-04-13 13:05:41 -04:00
Git.hs fix bug involving local git remote and out of date location log 2020-04-21 12:36:58 -04:00
GitLFS.hs git-annex config: guard against non-repo-global configs 2020-03-02 15:54:18 -04:00
Glacier.hs fix encryption of content to gcrypt and git-lfs 2020-02-26 18:05:36 -04:00
Hook.hs fix encryption of content to gcrypt and git-lfs 2020-02-26 18:05:36 -04:00
List.hs Merge branch 'v7' 2020-02-26 18:15:18 -04:00
P2P.hs fix encryption of content to gcrypt and git-lfs 2020-02-26 18:05:36 -04:00
Rsync.hs mostly finished with createDirectoryUnder conversion 2020-03-06 11:57:15 -04:00
S3.hs Merge branch 'v7' 2020-02-26 18:15:18 -04:00
Tahoe.hs fix encryption of content to gcrypt and git-lfs 2020-02-26 18:05:36 -04:00
Web.hs fix encryption of content to gcrypt and git-lfs 2020-02-26 18:05:36 -04:00
WebDAV.hs webdav: Made exporttree remotes faster by caching connection to the server 2020-03-20 12:48:43 -04:00