From 67d69effb49096a4f649e7a0c1a09b61c409f004 Mon Sep 17 00:00:00 2001 From: Daniel Gröber Date: Mon, 12 Jun 2017 04:01:08 +0200 Subject: Fix unpackCabalHEAD on squeeze due to old git --- CabalHelper/Compile.hs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'CabalHelper') diff --git a/CabalHelper/Compile.hs b/CabalHelper/Compile.hs index 66cd96b..5071e15 100644 --- a/CabalHelper/Compile.hs +++ b/CabalHelper/Compile.hs @@ -375,7 +375,8 @@ unpackCabalHEAD tmpdir = do let dir = tmpdir "cabal-head.git" url = "https://github.com/haskell/cabal.git" ExitSuccess <- rawSystem "git" [ "clone", "--depth=1", url, dir] - commit <- trim <$> readProcess "git" ["-C", dir, "rev-parse", "HEAD"] "" + let git_rev_parse = (proc "git" ["rev-parse", "HEAD"]) { cwd = Just dir } + commit <- trim <$> readCreateProcess git_rev_parse "" return (dir "Cabal", commit) errorInstallCabal :: Version -> FilePath -> a -- cgit v1.2.3