fix reversion in info, and add test case
info: Fix reversion in last release involving handling of unsupported input by continuing to handle any other inputs, before exiting nonzero at the end. Sponsored-by: Dartmouth College's Datalad project
This commit is contained in:
parent
4199c457e2
commit
16d3097a08
6 changed files with 44 additions and 18 deletions
|
@ -182,7 +182,9 @@ itemInfo o (si, p) = ifM (isdir p)
|
|||
noInfo :: String -> SeekInput -> String -> Annex ()
|
||||
noInfo s si msg = do
|
||||
showStart "info" (encodeBS s) si
|
||||
giveup msg
|
||||
showNote msg
|
||||
showEndFail
|
||||
Annex.incError
|
||||
|
||||
dirInfo :: InfoOptions -> FilePath -> SeekInput -> Annex ()
|
||||
dirInfo o dir si = showCustom (unwords ["info", dir]) si $ do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue