initremote --sameas fully working

And using sameas remotes is working.

Moved annex-config-uuid setting out of Remote.Helper.Special.
EnableRemote will also have to set it.
This commit is contained in:
Joey Hess 2019-10-11 14:18:44 -04:00
parent c0e88b7695
commit 35d7ffe128
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
3 changed files with 20 additions and 16 deletions

View file

@ -74,9 +74,6 @@ gitConfigSpecialRemote u c cfgs = do
forM_ cfgs $ \(k, v) ->
setConfig (remoteConfig c k) v
storeUUIDIn (remoteConfig c "uuid") u
case M.lookup sameasUUIDField c of
Nothing -> noop
Just sameasuuid -> setConfig (remoteConfig c "config-uuid") sameasuuid
-- RetrievalVerifiableKeysSecure unless overridden by git config.
--