diff options
author | 2012-03-22 00:23:15 -0400 | |
---|---|---|
committer | 2012-03-22 17:32:47 -0400 | |
commit | f1398b558316a936690a8f3b01493f498d15b659 (patch) | |
tree | ac58768f5e421b985f3a2ed135bb338b03a991ec /Annex/Version.hs | |
parent | 4eb51126819fe01a003688267f481c6d8014ef47 (diff) |
use new getConfig
Diffstat (limited to 'Annex/Version.hs')
-rw-r--r-- | Annex/Version.hs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Annex/Version.hs b/Annex/Version.hs index 917859eae..cf5d22484 100644 --- a/Annex/Version.hs +++ b/Annex/Version.hs @@ -8,7 +8,6 @@ module Annex.Version where import Common.Annex -import qualified Git.Config import Config type Version = String @@ -26,7 +25,7 @@ versionField :: String versionField = "annex.version" getVersion :: Annex (Maybe Version) -getVersion = handle <$> fromRepo (Git.Config.get versionField "") +getVersion = handle <$> getConfig versionField "" where handle [] = Nothing handle v = Just v |