bugfix
This commit is contained in:
parent
5601a8db02
commit
fcd30ce992
1 changed files with 7 additions and 6 deletions
13
Remotes.hs
13
Remotes.hs
|
@ -198,9 +198,10 @@ copyFromRemote r key file = do
|
||||||
else if (Git.repoIsSsh r)
|
else if (Git.repoIsSsh r)
|
||||||
then getssh
|
then getssh
|
||||||
else error "copying from non-ssh repo not supported"
|
else error "copying from non-ssh repo not supported"
|
||||||
getlocal = liftIO $ boolSystem "cp" ["-a", location, file]
|
where
|
||||||
getssh = do
|
getlocal = liftIO $ boolSystem "cp" ["-a", location, file]
|
||||||
liftIO $ putStrLn "" -- make way for scp progress bar
|
getssh = do
|
||||||
liftIO $ boolSystem "scp" [sshlocation, file]
|
liftIO $ putStrLn "" -- make way for scp progress bar
|
||||||
location = annexLocation r key
|
liftIO $ boolSystem "scp" [sshlocation, file]
|
||||||
sshlocation = (Git.urlHost r) ++ ":" ++ location
|
location = annexLocation r key
|
||||||
|
sshlocation = (Git.urlHost r) ++ ":" ++ location
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue