Better ssh connection warmup when using -J for concurrency.

Avoids ugly messages when forced ssh command is not git-annex-shell.

This commit was sponsored by Ole-Morten Duesund on Patreon.
This commit is contained in:
Joey Hess 2018-03-07 17:25:42 -04:00
parent 460ab8a181
commit 3dd43df9c2
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
5 changed files with 60 additions and 40 deletions

View file

@ -30,3 +30,4 @@ git-annex version: 6.20180227-g32d682dd8 (standalone version) on Debian stretch
As always, I'm a fan :>
> [[fixed|done]] --[[Joey]]

View file

@ -0,0 +1,18 @@
[[!comment format=mdwn
username="joey"
subject="""comment 4"""
date="2018-03-07T20:25:10Z"
content="""
Ok, this involves the fairly recently added support for
avoding overlapping ssh password prompts when running multiple ssh
processes concurrently.
In -J mode, git-annex warms up the ssh connection by running
"git-annex-shell inannex". Your rrsync config prevents that being run.
This doesn't actually cause a problem, the connection is still warmed up.
If you needed a password to connect, it would have prompted for it before
the error message from rrsync.
But it's ugly.. I've committed a fix that will avoid the ugly messages.
"""]]