fix file encoding of HashObject

This commit is contained in:
Joey Hess 2012-02-04 12:58:42 -04:00
parent f1c7dc1212
commit 586be39952

View file

@ -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