Skip to content

Commit

Permalink
Merge pull request #105 from rzwierz/master
Browse files Browse the repository at this point in the history
Fix for JENKINS-7376
  • Loading branch information
ndeloof committed Oct 22, 2012
2 parents eecf244 + abe5ceb commit cb2e9c9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/hudson/plugins/git/GitSCM.java
Expand Up @@ -1234,6 +1234,10 @@ public BuildData invoke(File localWorkspace, VirtualChannel channel)
if (getClean()) {
listener.getLogger().println("Cleaning workspace");
git.clean();

if (git.hasGitModules() && !disableSubmodules) {
git.submoduleClean(recursiveSubmodules);
}
}

git.checkoutBranch(paramLocalBranch, revToBuild.getSha1().name());
Expand Down

0 comments on commit cb2e9c9

Please sign in to comment.