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:
Joey Hess 2023-02-20 14:31:24 -04:00
parent 4199c457e2
commit 16d3097a08
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
6 changed files with 44 additions and 18 deletions

View file

@ -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