use of org.eclipse.egit.core.RepositoryCache in project egit by eclipse.
the class GitProjectSetCapabilityTest method shutDownRepositories.
protected static void shutDownRepositories() {
RepositoryCache cache = Activator.getDefault().getRepositoryCache();
for (Repository repository : cache.getAllRepositories()) {
repository.close();
}
cache.clear();
}
use of org.eclipse.egit.core.RepositoryCache in project egit by eclipse.
the class LocalRepositoryTestCase method shutDownRepositories.
protected static void shutDownRepositories() throws Exception {
RepositoryCache cache = Activator.getDefault().getRepositoryCache();
for (Repository repository : cache.getAllRepositories()) repository.close();
cache.clear();
IEclipsePreferences prefs = Activator.getDefault().getRepositoryUtil().getPreferences();
synchronized (prefs) {
prefs.put(RepositoryUtil.PREFS_DIRECTORIES, "");
prefs.put(RepositoryUtil.PREFS_DIRECTORIES_REL, "");
prefs.flush();
}
}
Aggregations