1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-11-01 14:57:52 +01:00
git/contrib/remote-helpers
Richard Hansen bd5424f0d6 remote-bzr: reuse bzrlib transports when possible
Pass a list of open bzrlib.transport.Transport objects to each bzrlib
function that might create a transport.  This enables bzrlib to reuse
existing transports when possible, avoiding multiple concurrent
connections to the same remote server.

If the remote server is accessed via ssh, this fixes a couple of
problems:
  * If the user does not have keys loaded into an ssh agent, the user
    may be prompted for a password multiple times.
  * If the user is using OpenSSH and the ControlMaster setting is set
    to auto, git-remote-bzr might hang.  This is because bzrlib closes
    the multiple ssh sessions in an undefined order and might try to
    close the master ssh session before the other sessions.  The
    master ssh process will not exit until the other sessions have
    exited, causing a deadlock.  (The ssh sessions are closed in an
    undefined order because bzrlib relies on the Python garbage
    collector to trigger ssh session termination.)

Signed-off-by: Richard Hansen <rhansen@bbn.com>
Acked-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2013-09-08 11:15:33 -07:00
..
git-remote-bzr remote-bzr: reuse bzrlib transports when possible 2013-09-08 11:15:33 -07:00
git-remote-hg Merge branch 'fc/remote-hg-shared-setup' 2013-09-04 12:36:32 -07:00
Makefile remote-helpers: fix the run of all tests 2013-04-04 09:35:20 -07:00
test-bzr.sh remote-bzr: simplify test checks 2013-05-28 07:59:31 -07:00
test-hg-bidi.sh remote-hg: always point HEAD to master 2013-05-28 07:59:30 -07:00
test-hg-hg-git.sh remote-hg: always point HEAD to master 2013-05-28 07:59:30 -07:00
test-hg.sh remote-hg: add support for --force 2013-05-28 08:02:25 -07:00