factor out getRemoteGitConfig
This commit is contained in:
parent
dd6b32e9a2
commit
c34b5e09f8
6 changed files with 22 additions and 21 deletions
|
@ -13,7 +13,7 @@ import System.Process
|
|||
import Data.ByteString.Lazy.UTF8 (fromString)
|
||||
|
||||
import Common.Annex
|
||||
import Types.GitConfig
|
||||
import qualified Annex
|
||||
import Types.Remote
|
||||
import Types.Key
|
||||
import Types.Creds
|
||||
|
@ -224,8 +224,7 @@ storeBupUUID u buprepo = do
|
|||
|
||||
onBupRemote :: Git.Repo -> (FilePath -> [CommandParam] -> IO a) -> FilePath -> [CommandParam] -> Annex a
|
||||
onBupRemote r a command params = do
|
||||
g <- fromRepo id
|
||||
let c = extractRemoteGitConfig g (Git.repoDescribe r)
|
||||
c <- Annex.getRemoteGitConfig r
|
||||
sshparams <- Ssh.toRepo r c [Param $
|
||||
"cd " ++ dir ++ " && " ++ unwords (command : toCommand params)]
|
||||
liftIO $ a "ssh" sshparams
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue