summaryrefslogtreecommitdiff
path: root/Git/Command.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Git/Command.hs')
-rw-r--r--Git/Command.hs9
1 files changed, 6 insertions, 3 deletions
diff --git a/Git/Command.hs b/Git/Command.hs
index 96957c838..0a324ea00 100644
--- a/Git/Command.hs
+++ b/Git/Command.hs
@@ -89,10 +89,13 @@ pipeNullSplit params repo = do
where
sep = "\0"
-{- Does not wait on the git command when it's done, so produces
- - one zombie. -}
+
pipeNullSplitZombie :: [CommandParam] -> Repo -> IO [String]
-pipeNullSplitZombie params repo = fst <$> pipeNullSplit params repo
+pipeNullSplitZombie params repo = leaveZombie <$> pipeNullSplit params repo
+
+{- Doesn't run the cleanup action. A zombie results. -}
+leaveZombie :: (a, IO Bool) -> a
+leaveZombie = fst
{- Reaps any zombie git processes.
-