List of usage examples for org.eclipse.jgit.transport TransportGitSsh close
@Override public void close()
From source file:org.eclipse.ptp.internal.rdt.sync.git.core.JGitRepo.java
License:Open Source License
/** * Releases all resources allocated by this JGit repository instance, including closing all transport objects and closing the * repository itself. Instance should not be used after calling this method. *//*from ww w .ja v a2 s . c om*/ public void close() { for (TransportGitSsh t : remoteToTransportMap.values()) { t.close(); } remoteToTransportMap.clear(); git.getRepository().close(); git = null; fileFilter = null; fileToMergePartsMap.clear(); }