summaryrefslogtreecommitdiff
path: root/UUID.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2011-02-03 22:20:55 -0400
committerGravatar Joey Hess <joey@kitenet.net>2011-02-03 22:20:55 -0400
commit17829be0fd2ec090c2854f05856e91ca4359e71c (patch)
tree6b6ab5d32d6bb99f518dba0232fd4c906c9778ca /UUID.hs
parent0c7d17ae062c136e549cc9800dae85f3e3793237 (diff)
map improvements
added uuid.log repos group repos by host avoid displaying most urls display remote names on edges still some bugs
Diffstat (limited to 'UUID.hs')
-rw-r--r--UUID.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/UUID.hs b/UUID.hs
index 6c719b41e..67cba3031 100644
--- a/UUID.hs
+++ b/UUID.hs
@@ -26,6 +26,7 @@ import Control.Monad.State
import System.Cmd.Utils
import System.IO
import qualified Data.Map as M
+import Data.Maybe
import qualified GitRepo as Git
import Types
@@ -72,7 +73,7 @@ getUUID r = do
where
cached g = Git.configGet g cachekey ""
updatecache g u = when (g /= r) $ Annex.setConfig cachekey u
- cachekey = "remote." ++ Git.repoRemoteName r ++ ".annex-uuid"
+ cachekey = "remote." ++ fromMaybe "" (Git.repoRemoteName r) ++ ".annex-uuid"
getUncachedUUID :: Git.Repo -> UUID
getUncachedUUID r = Git.configGet r "annex.uuid" ""