git-annex/Assistant/WebApp
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
..
Configurators auto-init autoenable=yes 2020-05-27 12:40:35 -04:00
Common.hs generalize catchHardwareFault to catchIOErrorType 2015-12-06 16:26:38 -04:00
Configurators.hs webapp: full wormhole pairing UI (untested) 2016-12-27 16:41:35 -04:00
Control.hs Always use filesystem encoding for all file and handle reads and writes. 2016-12-24 14:46:31 -04:00
DashBoard.hs convert TopFilePath to use RawFilePath 2019-12-09 15:07:21 -04:00
Documentation.hs split BuildInfo and BuildFlags 2018-01-02 13:47:51 -04:00
Form.hs remove many old version ifdefs 2019-07-05 15:09:37 -04:00
Gpg.hs get rid of hardcoded "name" lookups 2019-10-10 13:25:10 -04:00
MakeRemote.hs change Remote.repo to Remote.getRepo 2018-06-04 15:30:26 -04:00
Notifications.hs Merge branch 'master' into no-xmpp 2016-12-24 15:01:55 -04:00
OtherRepos.hs update my email address and homepage url 2015-01-21 12:50:09 -04:00
Page.hs removed the old Android app 2018-10-13 01:41:11 -04:00
Pairing.hs avoid insertWith' depreaction warning 2018-04-22 13:28:31 -04:00
Repair.hs update my email address and homepage url 2015-01-21 12:50:09 -04:00
RepoId.hs remove 163 lines of code without changing anything except imports 2016-01-20 16:36:33 -04:00
RepoList.hs auto-init autoenable=yes 2020-05-27 12:40:35 -04:00
routes webapp: remove configurators for obsolste cloud storage services 2019-01-22 11:48:35 -04:00
SideBar.hs another FlexibleContexts fix 2015-05-10 15:46:59 -04:00
Types.hs remove many old version ifdefs 2019-07-05 15:09:37 -04:00