git-annex/Assistant/WebApp
Joey Hess 9eaabf0382 webapp: avoid overwriting remote configs when enabling it
Avoid stomping on existing group and preferred content settings
when enabling or combining with an already existing remote.

Two level fix. First, use defaultStandardGroup rather than
setStandardGroup, so if there is an existing configuration in the git-annex
branch, it's not overwritten.

To handle pre-existing ssh remotes (including gcrypt), a second level is
needed, because before syncing with the remote, it's configuration won't be
available locally. (And syncing could take a long time.) So, in this case,
keep track of whether the remote is being created or enabled, and only set
configs when creating it.

This commit was sponsored by Anders Lannerback.
2014-05-30 14:03:04 -04:00
..
Configurators webapp: avoid overwriting remote configs when enabling it 2014-05-30 14:03:04 -04:00
Bootstrap3.hs better work around for broken ghc in debian stable and some ubuntus 2014-05-23 13:00:29 -04:00
Common.hs backport Yesod.Form.Bootstrap3 to Yesod 1.0.1 2014-04-27 20:18:36 +02:00
Configurators.hs webapp: Rework xmpp nudge to prompt for either xmpp or a ssh remote be set up. 2014-04-09 16:27:24 -04:00
Control.hs windows: Fix process termination code. 2014-02-13 15:53:10 -04:00
DashBoard.hs Windows: Crazy hack to make file manager not start hidden underneath web browser window 2014-02-13 13:16:28 -04:00
Documentation.hs hlint 2013-10-02 01:06:59 -04:00
Form.hs webapp: Better ssh password prompting. 2014-05-14 15:38:32 -04:00
Gpg.hs don't close tags that are closed by hamlet 2014-04-21 19:47:21 +02:00
MakeRemote.hs webapp: avoid overwriting remote configs when enabling it 2014-05-30 14:03:04 -04:00
Notifications.hs webapp: Use securemem for constant time auth token comparisons. 2014-03-12 21:41:20 -04:00
OtherRepos.hs webapp: Filter out from Switch Repository list any repositories listed in autostart file that don't have a git directory anymore. 2014-02-28 19:16:49 -04:00
Page.hs update bootstrap files to bootstrap3 2014-04-21 19:05:09 +02:00
Repair.hs assistant: Support repairing git remotes that are locally accessible 2013-10-27 15:38:59 -04:00
RepoId.hs webapp: Improve UI around remote that have no annex.uuid set, either because setup of them is incomplete, or because the remote git repository is not a git-annex repository. 2013-11-07 18:02:00 -04:00
RepoList.hs webapp: Support for enabling known git repositories on ssh servers. 2014-05-22 14:10:48 -04:00
routes webapp: Support for enabling known git repositories on ssh servers. 2014-05-22 14:10:48 -04:00
SideBar.hs don't close tags that are closed by hamlet 2014-04-21 19:47:21 +02:00
Types.hs webapp: When adding a new local repository, fix bug that caused its group and preferred content to be set in the current repository, even when not combining. 2014-05-29 20:17:05 -04:00