git-annex/doc/bugs/Disabling_remote_auto-enabling_not_possible
Joey Hess 8728695b9c
support enableremote of git repo changing eg autoenable=
enableremote: Support enableremote of a git remote (that was previously set
up with initremote) when additional parameters such as autoenable= are
passed.

The enableremote special case for regular git repos is intended to handle
ones that don't have a UUID probed, and the user wants git-annex to
re-probe. So, that special case is still needed. But, in that special
case, the user is not passing any extra parameters. So, when there are
parameters, instead run the special remote setup code. That requires there
to be a uuid known already, and it allows changing things like autoenable=

Remote.Git.enableRemote changed to be a no-op if a git remote with the name
already exists. Which it generally will in this case.

Sponsored-by: Jack Hill on Patreon
2023-04-18 14:00:24 -04:00
..
comment_1_136c0fa106347bd0474f8298fde227f5._comment
comment_2_f6b1d513e664d1a5ee51b90f49731eeb._comment
comment_3_c2c7144fa74bdc455e1bd36b594902c1._comment comment 2023-04-18 13:09:24 -04:00
comment_4_4f3e9f15fcc96cd98c6915ec68cc471f._comment support enableremote of git repo changing eg autoenable= 2023-04-18 14:00:24 -04:00
comment_5_ccb5b6960da43a93ff0b7404190c51de._comment comment 2023-04-18 13:09:24 -04:00