diff options
author | Joey Hess <joeyh@joeyh.name> | 2017-11-14 14:25:46 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2017-11-14 14:28:49 -0400 |
commit | ad1e45aaedee71fbae100d2d73ff56b6d09e1577 (patch) | |
tree | 26f816e04a90e10aef3e7467695f6a04d06894d0 /Git | |
parent | db5dd896f37700a9acc59dae76da45d60ec59821 (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.hs | 1 | ||||
-rw-r--r-- | Git/Index.hs | 1 |
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" |