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 :: [FilePath] -> Repo -> IO ([Sha], IO ())
|
||||||
hashFiles paths repo = do
|
hashFiles paths repo = do
|
||||||
(pid, fromh, toh) <- hPipeBoth "git" $ toCommand $ git_hash_object repo
|
(pid, fromh, toh) <- hPipeBoth "git" $ toCommand $ git_hash_object repo
|
||||||
|
fileEncoding toh
|
||||||
_ <- forkProcess (feeder toh)
|
_ <- forkProcess (feeder toh)
|
||||||
hClose toh
|
hClose toh
|
||||||
shas <- map Ref . lines <$> hGetContentsStrict fromh
|
shas <- map Ref . lines <$> hGetContentsStrict fromh
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue