diff options
author | 2014-05-30 14:03:04 -0400 | |
---|---|---|
committer | 2014-05-30 14:03:04 -0400 | |
commit | a102f2f1887f2565b3a7908eff8995e6cf04d567 (patch) | |
tree | fa389876de1ed479cea38bbd65828fda31dd9728 /doc | |
parent | 60330325aa7e38844ef02251e850936902cd084f (diff) |
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.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/bugs/adding_existing_repo_as_remote_in_webapp_may_reset_its_group.mdwn | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/bugs/adding_existing_repo_as_remote_in_webapp_may_reset_its_group.mdwn b/doc/bugs/adding_existing_repo_as_remote_in_webapp_may_reset_its_group.mdwn index 492adfe8b..37a9c2a2e 100644 --- a/doc/bugs/adding_existing_repo_as_remote_in_webapp_may_reset_its_group.mdwn +++ b/doc/bugs/adding_existing_repo_as_remote_in_webapp_may_reset_its_group.mdwn @@ -9,3 +9,8 @@ may have the same problems. Didn't check yet. > Fixed for local repos and repos on removable drives. Still open for > ssh remotes (incl gcrypt). --[[Joey]] + +>> Fixed for ssh (including gcrypt) too. +>> +>> Also affected enabling existing special remotes, like webdav; that's +>> also fixed. [[done]] --[[Joey]] |