git-annex/Assistant
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
..
Alert update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
Install update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
Pairing update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
Threads auto-init autoenable=yes 2020-05-27 12:40:35 -04:00
Types convert KeySource to RawFilePath 2020-02-21 10:04:44 -04:00
WebApp auto-init autoenable=yes 2020-05-27 12:40:35 -04:00
Alert.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
BranchChange.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
Changes.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
Commits.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
Common.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
CredPairCache.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
DaemonStatus.hs automate remote.name.skipFetchAll 2020-02-19 13:58:26 -04:00
DeleteRemote.hs auto-init autoenable=yes 2020-05-27 12:40:35 -04:00
Drop.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
Fsck.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
Gpg.hs be stricter about rejecting invalid configurations for remotes 2020-01-10 14:52:48 -04:00
Install.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
MakeRemote.hs auto-init autoenable=yes 2020-05-27 12:40:35 -04:00
MakeRepo.hs everything is building again 2019-12-05 15:10:23 -04:00
Monad.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
NamedThread.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
Pairing.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
Pushes.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
RemoteControl.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
Repair.hs more RawFilePath 2019-12-18 17:10:28 -04:00
RepoProblem.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
Restart.hs make --json-error-messages capture url download errors 2019-11-12 13:52:38 -04:00
ScanRemotes.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
Ssh.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
Sync.hs auto-init autoenable=yes 2020-05-27 12:40:35 -04:00
TransferQueue.hs cache the serialization of a Key 2019-11-22 17:49:16 -04:00
TransferrerPool.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
TransferSlots.hs everything is building again 2019-12-05 15:10:23 -04:00
Unused.hs convert TopFilePath to use RawFilePath 2019-12-09 15:07:21 -04:00
Upgrade.hs improve programPath 2020-04-15 16:46:34 -04:00
WebApp.hs unified AuthToken type between webapp and tor 2016-11-22 14:18:34 -04:00