]> source.dussan.org Git - jgit.git/commit
Automatically reload known_hosts file 23/25523/2
authorDoug Kelly <dougk.ff7@gmail.com>
Thu, 24 Apr 2014 19:37:27 +0000 (14:37 -0500)
committerDoug Kelly <dougk.ff7@gmail.com>
Thu, 24 Apr 2014 20:50:21 +0000 (16:50 -0400)
commit44025d4c54dd8c31b8aaf9140035086d28ad309d
tree4eed0ee0bb2012e80f9eef584fc1a91e2e427582
parent62bbde33930226861c161a9719aaac66a7538d81
Automatically reload known_hosts file

JGit caches the contents of the known_hosts file within JSch when
first started, and never attempts to re-read it.  If the contents
change (such as when using Gerrit replication), the new host will
never be found.

On failures, try reloading the knonwn_hosts and retry the
connection, in addition to reloading the credentials.

Change-Id: I980c4f4003f2a48c71b9b47c51e640d1e7742f58
Signed-off-by: Doug Kelly <dougk.ff7@gmail.com>
org.eclipse.jgit/src/org/eclipse/jgit/transport/JschConfigSessionFactory.java