List of usage examples for org.eclipse.jgit.api SubmoduleSyncCommand SubmoduleSyncCommand
public SubmoduleSyncCommand(Repository repo)
From source file:org.eclipse.orion.server.git.servlets.GitSubmoduleHandlerV1.java
License:Open Source License
public static boolean syncSubmodules(Repository repo) throws GitAPIException { SubmoduleSyncCommand sync = new SubmoduleSyncCommand(repo); Map<String, String> synced = sync.call(); SubmoduleStatusCommand status = new SubmoduleStatusCommand(repo); Map<String, SubmoduleStatus> statusResult = status.call(); return synced.size() == statusResult.size(); }