status: Propigate nonzero exit code from git status.
This commit is contained in:
parent
e4bcfcb618
commit
874232f1a6
3 changed files with 18 additions and 2 deletions
|
@ -47,8 +47,10 @@ start o locs = do
|
|||
, return $ \s -> pure (Just s)
|
||||
)
|
||||
forM_ l $ \s -> maybe noop displayStatus =<< getstatus s
|
||||
void $ liftIO cleanup
|
||||
stop
|
||||
ifM (liftIO cleanup)
|
||||
( stop
|
||||
, giveup "git status failed"
|
||||
)
|
||||
where
|
||||
ps = case ignoreSubmodules o of
|
||||
Nothing -> []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue