From f7f1d25df832f30585d138e50a983403407cee96 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 4 Oct 2012 19:41:58 -0400 Subject: [PATCH] bugfix --- Git/Command.hs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Git/Command.hs b/Git/Command.hs index f38d6f72fa..96957c838d 100644 --- a/Git/Command.hs +++ b/Git/Command.hs @@ -8,7 +8,7 @@ module Git.Command where import System.Posix.Process (getAnyProcessStatus) -import System.Process (std_in, env) +import System.Process (std_out, env) import Common import Git @@ -46,7 +46,8 @@ run subcommand params repo = assertLocal repo $ -} pipeReadLazy :: [CommandParam] -> Repo -> IO (String, IO Bool) pipeReadLazy params repo = assertLocal repo $ do - (Just h, _, _, pid) <- createProcess p { std_in = CreatePipe } + (_, Just h, _, pid) <- createProcess p { std_out = CreatePipe } + fileEncoding h c <- hGetContents h return (c, checkSuccessProcess pid) where