fix file encoding of HashObject
This commit is contained in:
parent
f1c7dc1212
commit
586be39952
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue