make LocalRepo a newtype
This commit is contained in:
parent
8452ea45ca
commit
67f50e9cdd
5 changed files with 8 additions and 8 deletions
|
@ -29,10 +29,10 @@ transport rr@(RemoteRepo r _) url h ichan ochan = do
|
|||
Just (cmd, params) -> transportUsingCmd cmd params rr url h ichan ochan
|
||||
|
||||
transportUsingCmd :: FilePath -> [CommandParam] -> Transport
|
||||
transportUsingCmd cmd params rr@(RemoteRepo r gc) url h@(TransportHandle g s) ichan ochan = do
|
||||
transportUsingCmd cmd params rr@(RemoteRepo r gc) url h@(TransportHandle (LocalRepo g) s) ichan ochan = do
|
||||
-- enable ssh connection caching wherever inLocalRepo is called
|
||||
g' <- liftAnnex h $ sshOptionsTo r gc g
|
||||
let transporthandle = TransportHandle g' s
|
||||
let transporthandle = TransportHandle (LocalRepo g') s
|
||||
transportUsingCmd' cmd params rr url transporthandle ichan ochan
|
||||
|
||||
transportUsingCmd' :: FilePath -> [CommandParam] -> Transport
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue