use fileEncoding for git-update-index input handle

This commit is contained in:
Joey Hess 2012-02-04 13:03:33 -04:00
parent 586be39952
commit dc682e53a2

View file

@ -57,6 +57,7 @@ update_index repo ls = stream_update_index repo [(`mapM_` ls)]
stream_update_index :: Repo -> [Streamer] -> IO ()
stream_update_index repo as = do
(p, h) <- hPipeTo "git" (toCommand $ gitCommandLine params repo)
fileEncoding h
forM_ as (stream h)
hClose h
forceSuccess p