This commit is contained in:
Joey Hess 2014-10-15 14:29:53 -04:00
parent cdcb4548b3
commit 807f8553c3
2 changed files with 4 additions and 4 deletions

View file

@ -194,11 +194,11 @@ tryScan r
| Git.repoIsUrl r = return Nothing
| otherwise = liftIO $ safely $ Git.Config.read r
where
pipedconfig cmd params = liftIO $ safely $
pipedconfig pcmd params = liftIO $ safely $
withHandle StdoutHandle createProcessSuccess p $
Git.Config.hRead r
where
p = proc cmd $ toCommand params
p = proc pcmd $ toCommand params
configlist = Ssh.onRemote r (pipedconfig, return Nothing) "configlist" [] []
manualconfiglist = do

View file

@ -24,11 +24,11 @@ seek :: CommandSeek
seek = trustCommand "trust" Trusted
trustCommand :: String -> TrustLevel -> CommandSeek
trustCommand cmd level = withWords start
trustCommand c level = withWords start
where
start ws = do
let name = unwords ws
showStart cmd name
showStart c name
u <- Remote.nameToUUID name
next $ perform u
perform uuid = do