bugfix: shell escape for scp

This commit is contained in:
Joey Hess 2010-10-31 22:13:43 -04:00
parent 4e742d62f4
commit 228b32d473

View file

@ -217,7 +217,7 @@ copyToRemote r key file = do
liftIO $ boolSystem "scp" [src, sshLocation r file]
sshLocation :: Git.Repo -> FilePath -> FilePath
sshLocation r file = (Git.urlHost r) ++ ":" ++ file
sshLocation r file = (Git.urlHost r) ++ ":" ++ shellEscape file
{- Runs a command in a remote. -}
runCmd :: Git.Repo -> String -> [String] -> Annex Bool