]> dgit.raspbian.org Git - git-annex.git/commit
be quiet when reading cluster and proxy information at startup
authorJoey Hess <joeyh@joeyh.name>
Wed, 19 Jun 2024 01:31:32 +0000 (21:31 -0400)
committerJoey Hess <joeyh@joeyh.name>
Wed, 19 Jun 2024 01:31:32 +0000 (21:31 -0400)
commit6eac3112e590f13aeaf009befce0a8d9f6aa62cc
tree5030358b713defb3e3acc8aa72574fd8bfcb9738
parentf916ce4b689bd26096b28d9c8c159552e318bbbd
be quiet when reading cluster and proxy information at startup

I had a transfer of 3 files fail like this:

git-annex: transferrer protocol error: "(recording state in git...)"

The remote had stalldetection enabled, although I didn't see it stall.
So git-annex transferrer would have been started up. I guess that
one of these new git-annex branch reads, that happens early, caused
that message due to perhaps an uncommitted git-annex branch change.

Since the transferrer speaks a protocol over stdout, it needs to be
prevented from outputting other messages to stdout. Interestingly,
startupAnnex is run after prepRunCommand, so if a command requests quiet
output it would already be quiet. But the transferrer does not, instead
it calls Annex.setOutput SerializedOutput in its start action.
Annex/Startup.hs
Remote/Git.hs