summaryrefslogtreecommitdiff
path: root/UUID.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2011-03-27 16:17:56 -0400
committerGravatar Joey Hess <joey@kitenet.net>2011-03-27 16:17:56 -0400
commitf30320aa75d6fa590f60030f13df6b3899816196 (patch)
tree8152163ab2170de227566c42f196051a94ef5e91 /UUID.hs
parentb40f253d6e126d699e9f298bf670fc5e875bfd86 (diff)
add remotes slot to Annex
This required parameterizing the type for Remote, to avoid a cycle.
Diffstat (limited to 'UUID.hs')
-rw-r--r--UUID.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/UUID.hs b/UUID.hs
index 42afd7ba8..3f2843485 100644
--- a/UUID.hs
+++ b/UUID.hs
@@ -36,7 +36,7 @@ import qualified SysConfig
type UUID = String
configkey :: String
-configkey="annex.uuid"
+configkey = "annex.uuid"
{- Generates a UUID. There is a library for this, but it's not packaged,
- so use the command line tool. -}
@@ -74,7 +74,7 @@ getUUID r = do
cachekey = "remote." ++ fromMaybe "" (Git.repoRemoteName r) ++ ".annex-uuid"
getUncachedUUID :: Git.Repo -> UUID
-getUncachedUUID r = Git.configGet r "annex.uuid" ""
+getUncachedUUID r = Git.configGet r configkey ""
{- Make sure that the repo has an annex.uuid setting. -}
prepUUID :: Annex ()