]> dgit.raspbian.org Git - git-annex.git/commit
enableremote: Better handling of the unusual case where multiple special remotes...
authorJoey Hess <joeyh@joeyh.name>
Wed, 5 Jan 2022 19:12:01 +0000 (15:12 -0400)
committerJoey Hess <joeyh@joeyh.name>
Wed, 5 Jan 2022 19:12:11 +0000 (15:12 -0400)
commit58afb00f6e7e3e6c5d8a1c7a6e1d96be2bc9206e
treea09cc6b071a9b0a826420d1541812d68cb88fbf2
parent7f3628331c5111cad7457bcfe38de94e810c92aa
enableremote: Better handling of the unusual case where multiple special remotes have been initialized with the same name

Before it would pick one at random, though preferring ones that were not
dead over dead ones.

Now, if one is dead and the other not, it will use the non-dead one. But if
both are not dead, or both dead, it will error out, suggesting the user
clarify what they want to enable.

Sponsored-by: Luke Shumaker on Patreon
Annex/SpecialRemote.hs
CHANGELOG
Command/EnableRemote.hs