summaryrefslogtreecommitdiff
path: root/Backend
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2010-10-22 14:28:47 -0400
committerGravatar Joey Hess <joey@kitenet.net>2010-10-22 14:28:47 -0400
commit9ec5d90b6a28e28f6349635d33df0000ce9203ef (patch)
tree8c900655378db7d6f2f1aab1a110002305c3caf6 /Backend
parent46ac66a4380e238865f213ff28411283a4efbbbd (diff)
avoid reading configs for URL remotes every time
Diffstat (limited to 'Backend')
-rw-r--r--Backend/File.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Backend/File.hs b/Backend/File.hs
index d28b92728..b99a064ae 100644
--- a/Backend/File.hs
+++ b/Backend/File.hs
@@ -79,7 +79,7 @@ copyKeyFile key file = do
{- Tries to copy a file from a remote. -}
copyFromRemote :: Git.Repo -> Key -> FilePath -> IO Bool
copyFromRemote r key file = do
- if (Git.repoIsLocal r)
+ if (not $ Git.repoIsUrl r)
then getlocal
else if (Git.repoIsSsh r)
then getssh