refactor
This commit is contained in:
parent
52104dae6f
commit
14d16b77b3
1 changed files with 2 additions and 2 deletions
|
@ -47,9 +47,9 @@ syncRemotes _ rs = mapM Remote.byName rs
|
|||
|
||||
defaultSyncRemotes :: Git.Ref -> Annex [Remote.Remote Annex]
|
||||
defaultSyncRemotes syncbranch = mapM Remote.byName =<<
|
||||
map getRemoteName . filter isRemote . map (show . snd) <$>
|
||||
inRepo (Git.Ref.matching $ Git.Ref.base syncbranch)
|
||||
map getRemoteName . filter isRemote . map (show . snd) <$> siblings
|
||||
where
|
||||
siblings = inRepo (Git.Ref.matching $ Git.Ref.base syncbranch)
|
||||
getRemoteName = fst . separate (== '/') . snd . separate (== '/') . snd . separate (== '/')
|
||||
isRemote r = "refs/remotes/" `isPrefixOf` r
|
||||
|
||||
|
|
Loading…
Reference in a new issue