fix remote git config vs global git config order
Bug fix: Git configs such as annex.verify were incorrectly overriding
per-remote git configs such as remote.name.annex-verify.
This dates all the way back to 2013,
commit 8a5b397ac4,
where hlint apparently somehow confused me into parsing in the wrong
order. Before that it was correct.
Amazing noone has noticed until now.
Sponsored-by: Kevin Mueller on Patreon
This commit is contained in:
parent
b76a4453cb
commit
55b405a965
2 changed files with 7 additions and 2 deletions
|
|
@ -440,8 +440,10 @@ extractRemoteGitConfig r remotename = do
|
|||
getmaybebool k = Git.Config.isTrueFalse' =<< getmaybe' k
|
||||
getmayberead k = readish =<< getmaybe k
|
||||
getmaybe = fmap fromConfigValue . getmaybe'
|
||||
getmaybe' k = mplus (Git.Config.getMaybe (annexConfig k) r)
|
||||
(Git.Config.getMaybe (remoteAnnexConfig remotename k) r)
|
||||
getmaybe' k =
|
||||
Git.Config.getMaybe (remoteAnnexConfig remotename k) r
|
||||
<|>
|
||||
Git.Config.getMaybe (annexConfig k) r
|
||||
getoptions k = fromMaybe [] $ words <$> getmaybe k
|
||||
|
||||
notempty :: Maybe String -> Maybe String
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue