Skip to content

Commit

Permalink
Merge pull request #27 from hrzlgnm/master
Browse files Browse the repository at this point in the history
[FIXED JENKINS-20317] Don't prune module if it's not a directory
  • Loading branch information
mc1arke committed Nov 6, 2013
2 parents 683b9ee + 2f35d9d commit eb2a491
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/java/hudson/scm/AbstractCvs.java
Expand Up @@ -267,7 +267,10 @@ public Boolean invoke(final File workspace, final VirtualChannel channel) throws
}
if (pruneEmptyDirectories && !isDisableCvsQuiet()) {
try {
pruneEmptyDirectories(new File(workspace, moduleName));
File moduleDir = new File(workspace, moduleName);
if (moduleDir.isDirectory()) {
pruneEmptyDirectories(moduleDir);
}
} catch (IOException e) {
e.printStackTrace(listener.error("CVS empty directory cleanup failed: " + e.getMessage()));
return false;
Expand Down

0 comments on commit eb2a491

Please sign in to comment.