summaryrefslogtreecommitdiff
path: root/GitAnnex.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2011-10-03 22:24:57 -0400
committerGravatar Joey Hess <joey@kitenet.net>2011-10-03 23:29:48 -0400
commit8ef2095fa00408ce6729596a42bc0abdc7778098 (patch)
treed6fc3c9f9519ba2ce617a804ce1c5f33f59a9109 /GitAnnex.hs
parent003a604a6e48a8a0ffd1564e3399b54e8c673e92 (diff)
factor out common imports
no code changes
Diffstat (limited to 'GitAnnex.hs')
-rw-r--r--GitAnnex.hs6
1 files changed, 2 insertions, 4 deletions
diff --git a/GitAnnex.hs b/GitAnnex.hs
index a9d469b44..fcfbf44b4 100644
--- a/GitAnnex.hs
+++ b/GitAnnex.hs
@@ -8,14 +8,12 @@
module GitAnnex where
import System.Console.GetOpt
-import Control.Monad.State (liftIO)
+import AnnexCommon
import qualified Git
import CmdLine
import Command
import Options
-import Utility
-import Types
import Types.TrustLevel
import qualified Annex
import qualified Remote
@@ -122,7 +120,7 @@ options = commonOptions ++
setkey v = Annex.changeState $ \s -> s { Annex.defaultkey = Just v }
setgitconfig :: String -> Annex ()
setgitconfig v = do
- g <- Annex.gitRepo
+ g <- gitRepo
g' <- liftIO $ Git.configStore g v
Annex.changeState $ \s -> s { Annex.repo = g' }