GETCONFIG name fix
Fix regression that prevented external special remotes from using GETCONFIG to query values like "name". (Introduced in version 7.20200202.7.)
This commit is contained in:
parent
d9bd645bf8
commit
6a91471923
4 changed files with 8 additions and 4 deletions
|
@ -424,9 +424,9 @@ handleRequest' st external req mp responsehandler
|
|||
modifyTVar' (externalConfigChanges st) $ \f ->
|
||||
f . M.insert (Accepted setting) (Accepted value)
|
||||
handleRemoteRequest (GETCONFIG setting) = do
|
||||
value <- fromMaybe ""
|
||||
value <- maybe "" fromProposedAccepted
|
||||
. (M.lookup (Accepted setting))
|
||||
. getRemoteConfigPassedThrough
|
||||
. unparsedRemoteConfig
|
||||
<$> liftIO (atomically $ readTVar $ externalConfig st)
|
||||
send $ VALUE value
|
||||
handleRemoteRequest (SETCREDS setting login password) = case (externalUUID external, externalGitConfig external) of
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue