summaryrefslogtreecommitdiff
path: root/test.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2012-05-18 18:20:53 -0400
committerGravatar Joey Hess <joey@kitenet.net>2012-05-18 18:20:53 -0400
commiteb6cb1b87f2d7016ddd4386e2a3bb20d8ea3c036 (patch)
tree1f9f35e7ca3db662bd67ec759de90267149319fa /test.hs
parentbb4f31a0ee496ffb83d31cc56f8827e47605d763 (diff)
Add support for core.worktree, and fix support for GIT_WORK_TREE and GIT_DIR.
The environment needs to override git-config. Changed when git config is read, and avoid rereading it once it's been read. chdir for both worktree settings.
Diffstat (limited to 'test.hs')
-rw-r--r--test.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/test.hs b/test.hs
index 1952a39a9..c52a88d66 100644
--- a/test.hs
+++ b/test.hs
@@ -26,7 +26,7 @@ import qualified Annex
import qualified Annex.UUID
import qualified Backend
import qualified Git.Config
-import qualified Git.Construct
+import qualified Git.CurrentRepo
import qualified Git.Filename
import qualified Locations
import qualified Types.Backend
@@ -721,7 +721,7 @@ git_annex_expectoutput command params expected = do
-- are not run; this should only be used for actions that query state.
annexeval :: Types.Annex a -> IO a
annexeval a = do
- s <- Annex.new =<< Git.Config.read =<< Git.Construct.fromCurrent
+ s <- Annex.new =<< Git.CurrentRepo.get
Annex.eval s $ do
Annex.setOutput Types.Messages.QuietOutput
a