aboutsummaryrefslogtreecommitdiff
path: root/Command/Map.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2012-01-08 16:05:57 -0400
committerGravatar Joey Hess <joey@kitenet.net>2012-01-08 16:05:57 -0400
commit7675b83efa77527c0b04b87e35f83df67e6af8d7 (patch)
treeb3d1c0bc36cb705bb9c0bc8ed2d087b33fbcdc0f /Command/Map.hs
parentfc669100e5fdf300e2cfbbc1a1ca5d99b03cc564 (diff)
map: Fix display of remote repos
A change to break local cycles made remote repos be dropped entirely.
Diffstat (limited to 'Command/Map.hs')
-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. -}