From d7b76d3be4f9c9f0b4b2b0a19fbc30a0e30b2be4 Mon Sep 17 00:00:00 2001 From: Patrick Thomson Date: Sun, 29 Sep 2019 18:57:35 -0400 Subject: [PATCH] Don't set the handles to binary mode. --- src/Semantic/Git.hs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Semantic/Git.hs b/src/Semantic/Git.hs index 903023c52..954365184 100644 --- a/src/Semantic/Git.hs +++ b/src/Semantic/Git.hs @@ -22,7 +22,6 @@ import Data.Char import Data.Either (fromRight) import Data.Text as Text import Shelly hiding (FilePath) -import System.IO (hSetBinaryMode) -- | git clone --bare clone :: Text -> FilePath -> IO () @@ -39,7 +38,7 @@ lsTree :: FilePath -> OID -> IO [TreeEntry] lsTree gitDir (OID sha) = sh $ parseEntries <$> run "git" ["-C", pack gitDir, "ls-tree", "-rz", sha] sh :: MonadIO m => Sh a -> m a -sh = shelly . silently . onCommandHandles (initOutputHandles (`hSetBinaryMode` True)) +sh = shelly . silently -- | Parses an list of entries separated by \NUL, and on failure return [] parseEntries :: Text -> [TreeEntry]