Fix support for remotes with '.' in their names.
This commit is contained in:
parent
0cc05e0c19
commit
0663f14cf7
2 changed files with 2 additions and 1 deletions
|
@ -404,7 +404,7 @@ configRemotes repo = mapM construct remotepairs
|
|||
remotepairs = Map.toList $ filterremotes $ config repo
|
||||
filterremotes = Map.filterWithKey (\k _ -> isremote k)
|
||||
isremote k = startswith "remote." k && endswith ".url" k
|
||||
remotename k = split "." k !! 1
|
||||
remotename k = join "." $ reverse $ drop 1 $ reverse $ drop 1 $ split "." k
|
||||
construct (k,v) = do
|
||||
r <- gen v
|
||||
return $ r { remoteName = Just $ remotename k }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue