pgm.push: Ensure SSH connections are closed
commita8769202bf3ea4cfe09a495efe4bb08fad257153
authorShawn O. Pearce <spearce@spearce.org>
Wed, 27 Aug 2008 23:02:06 +0000 (27 16:02 -0700)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Thu, 28 Aug 2008 21:59:34 +0000 (28 23:59 +0200)
tree728ea2c2b70eb53dd2b4470671198ea67abf15e2
parent03d2949f823663210049e93a3c9ea4333010659a
pgm.push: Ensure SSH connections are closed

If we don't close the transport when we are done with it
the SSH session stored within the Transport will still be
opened to the remote side.  JSch may have created one or
more background user threads to handle that connection,
which means the JVM won't terminate cleanly when we are
done with our work.

We must close each and every transport we opened.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
org.spearce.jgit.pgm/src/org/spearce/jgit/pgm/Push.java