summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Git/HashObject.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/Git/HashObject.hs b/Git/HashObject.hs
index f5e6d50cd..ae498278f 100644
--- a/Git/HashObject.hs
+++ b/Git/HashObject.hs
@@ -16,6 +16,7 @@ import Git.Command
hashFiles :: [FilePath] -> Repo -> IO ([Sha], IO ())
hashFiles paths repo = do
(pid, fromh, toh) <- hPipeBoth "git" $ toCommand $ git_hash_object repo
+ fileEncoding toh
_ <- forkProcess (feeder toh)
hClose toh
shas <- map Ref . lines <$> hGetContentsStrict fromh