aboutsummaryrefslogtreecommitdiff
path: root/Git
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2017-11-14 14:25:46 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2017-11-14 14:28:49 -0400
commitad1e45aaedee71fbae100d2d73ff56b6d09e1577 (patch)
tree26f816e04a90e10aef3e7467695f6a04d06894d0 /Git
parentdb5dd896f37700a9acc59dae76da45d60ec59821 (diff)
split out setEnv to avoid adding dep
Windows needs the setenv package in custom-setup, but I don't want to pull it in on unix, which would probably break some builds and need more work. Instead, split out setEnv to a separate module. Quite likely, unix-compat will get a portable environment layer, and then both modules can be removed from here. This commit was sponsored by Øyvind Andersen Holm.
Diffstat (limited to 'Git')
-rw-r--r--Git/CurrentRepo.hs1
-rw-r--r--Git/Index.hs1
2 files changed, 2 insertions, 0 deletions
diff --git a/Git/CurrentRepo.hs b/Git/CurrentRepo.hs
index 69a679ee3..df074cf8b 100644
--- a/Git/CurrentRepo.hs
+++ b/Git/CurrentRepo.hs
@@ -12,6 +12,7 @@ import Git.Types
import Git.Construct
import qualified Git.Config
import Utility.Env
+import Utility.Env.Set
{- Gets the current git repository.
-
diff --git a/Git/Index.hs b/Git/Index.hs
index 85ea480b5..0898569b4 100644
--- a/Git/Index.hs
+++ b/Git/Index.hs
@@ -10,6 +10,7 @@ module Git.Index where
import Common
import Git
import Utility.Env
+import Utility.Env.Set
indexEnv :: String
indexEnv = "GIT_INDEX_FILE"