Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[FIXED JENKINS-11263] SVN post-commit hook doesn't work at root of re…
…pository
  • Loading branch information
kohsuke committed Oct 10, 2011
1 parent 23deb3c commit d00f620
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/hudson/scm/SubversionRepositoryStatus.java
Expand Up @@ -129,7 +129,8 @@ public void doNotifyCommit(StaplerRequest req, StaplerResponse rsp) throws Servl
}

for (String path : affectedPath) {
if(path.equals(remaining) /*for files*/ || path.startsWith(remainingSlash) /*for dirs*/) {
if(path.equals(remaining) /*for files*/ || path.startsWith(remainingSlash) /*for dirs*/
|| remaining.length()==0/*when someone is checking out the whole repo (that is, m==n)*/) {
// this project is possibly changed. poll now.
// if any of the data we used was bogus, the trigger will not detect a change
LOGGER.fine("Scheduling the immediate polling of "+p);
Expand Down

0 comments on commit d00f620

Please sign in to comment.