/** * hasGitModules. * * @return true if this repository has submodules * @throws hudson.plugins.git.GitException if underlying git operation fails. * @throws java.lang.InterruptedException if interrupted. */ public boolean hasGitModules() throws GitException, InterruptedException { return proxy.hasGitModules(); }
/** * {@inheritDoc} */ @Override public void onClean(GitSCM scm, GitClient git) throws IOException, InterruptedException, GitException { if (!disableSubmodules && git.hasGitModules()) { git.submoduleClean(recursiveSubmodules); } }
BuildData revToBuild = scm.getBuildData(build); if (!disableSubmodules && git.hasGitModules()) {