]> dgit.raspbian.org Git - git-annex.git/commitdiff
run with noMessages
authorJoey Hess <joeyh@joeyh.name>
Mon, 29 Jul 2024 17:35:08 +0000 (13:35 -0400)
committerJoey Hess <joeyh@joeyh.name>
Mon, 29 Jul 2024 17:35:08 +0000 (13:35 -0400)
This avoids extraneous output from p2phttp, including eg, progress
displays when transferring to proxied special remotes.

Command/P2PHttp.hs

index caa693e1395cbc3b4de981d8773667baab8efaf2..5608f67bc847a7f8def91a717790fbc1486d148f 100644 (file)
@@ -25,9 +25,10 @@ import qualified Data.Map as M
 import Data.String
 
 cmd :: Command
-cmd = withAnnexOptions [jobsOption] $ command "p2phttp" SectionPlumbing
-       "communicate in P2P protocol over http"
-       paramNothing (seek <$$> optParser)
+cmd = noMessages $ withAnnexOptions [jobsOption] $
+       command "p2phttp" SectionPlumbing
+               "communicate in P2P protocol over http"
+               paramNothing (seek <$$> optParser)
 
 data Options = Options
        { portOption :: Maybe PortNumber