thinko
I removed the now unnecessary forkProcess, but forgot to change back to pipeBoth, so there was no writer thread.
This commit is contained in:
parent
0ef6d86873
commit
cad8824852
1 changed files with 3 additions and 4 deletions
|
@ -16,10 +16,9 @@ import qualified Git.Version
|
|||
lookup :: String -> [FilePath] -> Repo -> IO [(FilePath, String)]
|
||||
lookup attr files repo = do
|
||||
cwd <- getCurrentDirectory
|
||||
(_, fromh, toh) <- hPipeBoth "git" (toCommand params)
|
||||
hPutStr toh $ join "\0" $ input cwd
|
||||
hClose toh
|
||||
zip files . map attrvalue . lines <$> hGetContents fromh
|
||||
(_, r) <- pipeBoth "git" (toCommand params) $
|
||||
join "\0" $ input cwd
|
||||
return $ zip files $ map attrvalue $ lines r
|
||||
where
|
||||
params = gitCommandLine
|
||||
[ Param "check-attr"
|
||||
|
|
Loading…
Reference in a new issue