git-annex/Remote
Joey Hess 484a74f073
auto-init autoenable=yes
Try to enable special remotes configured with autoenable=yes when git-annex
auto-initialization happens in a new clone of an existing repo. Previously,
git-annex init had to be explicitly run to enable them. That was a bit of a
wart of a special case for users to need to keep in mind.

Special remotes cannot display anything when autoenabled this way, to avoid
interfering with the output of git-annex query commands.

Any error messages will be hidden, and if it fails, nothing is displayed.
The user will realize the remote isn't enable when they try to use it,
and can run git-annex init manually then to try the autoenable again and
see what failed.

That seems like a reasonable approach, and it's less complicated than
communicating something across a pipe in order to display it as a side
message. Other reason not to do that is that, if the first command the
user runs is one like git-annex find that has machine readable output,
any message about autoenable failing would need to not be displayed anyway.
So better to not display a failure message ever, for consistency.

(Had to split out Remote.List.Util to avoid an import cycle.)
2020-05-27 12:40:35 -04:00
..
Directory make storeKey throw exceptions 2020-05-13 14:03:00 -04:00
External add LISTCONFIGS to external special remote protocol 2020-01-17 16:07:17 -04:00
Helper improve error message when download from non-chunked remote fails 2020-05-21 14:44:40 -04:00
List auto-init autoenable=yes 2020-05-27 12:40:35 -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 convert renameExport to throw exception 2020-05-15 15:08:09 -04:00
BitTorrent.hs make removeKey throw exceptions 2020-05-14 14:11:05 -04:00
Bup.hs make removeKey throw exceptions 2020-05-14 14:11:05 -04:00
Ddar.hs make removeKey throw exceptions 2020-05-14 14:11:05 -04:00
Directory.hs convert renameExport to throw exception 2020-05-15 15:08:09 -04:00
External.hs convert renameExport to throw exception 2020-05-15 15:08:09 -04:00
GCrypt.hs make removeKey throw exceptions 2020-05-14 14:11:05 -04:00
Git.hs make removeKey throw exceptions 2020-05-14 14:11:05 -04:00
GitLFS.hs make removeKey throw exceptions 2020-05-14 14:11:05 -04:00
Glacier.hs fix embedcreds=yes reversion 2020-05-21 14:35:30 -04:00
Hook.hs make removeKey throw exceptions 2020-05-14 14:11:05 -04:00
List.hs auto-init autoenable=yes 2020-05-27 12:40:35 -04:00
P2P.hs make retrieveKeyFile and retrieveKeyFileCheap throw exceptions 2020-05-13 17:07:07 -04:00
Rsync.hs convert renameExport to throw exception 2020-05-15 15:08:09 -04:00
S3.hs fix embedcreds=yes reversion 2020-05-21 14:35:30 -04:00
Tahoe.hs make removeKey throw exceptions 2020-05-14 14:11:05 -04:00
Web.hs make removeKey throw exceptions 2020-05-14 14:11:05 -04:00
WebDAV.hs fix embedcreds=yes reversion 2020-05-21 14:35:30 -04:00