Permalink
Browse files

Merge pull request #105 from rzwierz/master

Fix for JENKINS-7376
  • Loading branch information...
ndeloof committed Oct 22, 2012
2 parents eecf244 + abe5ceb commit cb2e9c911b597b205a78e67f3c7cb624236cf5f3
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/main/java/hudson/plugins/git/GitSCM.java
@@ -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());

0 comments on commit cb2e9c9

Please sign in to comment.