List of usage examples for org.eclipse.jgit.api SubmoduleUpdateCommand SubmoduleUpdateCommand
public SubmoduleUpdateCommand(Repository repo)
Constructor for SubmoduleUpdateCommand.
From source file:org.eclipse.orion.server.git.servlets.GitSubmoduleHandlerV1.java
License:Open Source License
public static boolean updateSubmodules(Repository repo) throws GitAPIException { SubmoduleInitCommand init = new SubmoduleInitCommand(repo); init.call();/*from w ww. j ava 2s . c o m*/ SubmoduleUpdateCommand update = new SubmoduleUpdateCommand(repo); Collection<String> updated = update.call(); SubmoduleStatusCommand status = new SubmoduleStatusCommand(repo); Map<String, SubmoduleStatus> statusResult = status.call(); return updated.size() == statusResult.size(); }