enable debug output

When annex.debug is set, since --debug is not implemented for
git-remote-annex.
This commit is contained in:
Joey Hess 2024-05-28 15:20:22 -04:00
parent d2efa141bb
commit 80d236b789
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38

View file

@ -80,6 +80,8 @@ run _ = giveup "expected remote name and url parameters"
run' :: SpecialRemoteConfig -> String -> Annex ()
run' src url = do
sab <- startAnnexBranch
whenM (Annex.getRead Annex.debugenabled) $
enableDebugOutput
-- Prevent any usual git-annex output to stdout, because
-- the output of this command is being parsed by git.
doQuietAction $