summaryrefslogtreecommitdiff
path: root/Command
diff options
context:
space:
mode:
Diffstat (limited to 'Command')
-rw-r--r--Command/Map.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/Command/Map.hs b/Command/Map.hs
index 0f32e1130..faaa89392 100644
--- a/Command/Map.hs
+++ b/Command/Map.hs
@@ -155,6 +155,7 @@ spider' (r:rs) known
absRepo :: Git.Repo -> Git.Repo -> Annex Git.Repo
absRepo reference r
| Git.repoIsUrl reference = return $ Git.Construct.localToUrl reference r
+ | Git.repoIsUrl r = return r
| otherwise = liftIO $ Git.Construct.fromAbsPath =<< absPath (Git.workTree r)
{- Checks if two repos are the same. -}