Skip to content

Commit

Permalink
[JENKINS-23146] Handle changes to folder checked out to '.'
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-beck committed Aug 20, 2014
1 parent 9e181a8 commit 3df6c0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/hudson/scm/DirAwareSVNXMLLogHandler.java
Expand Up @@ -116,7 +116,7 @@ protected void sendToHandler(SVNLogEntry logEntry) throws SAXException {
if (path.getPath().startsWith(modulePath)) {
// this path is inside the locally checked out module location, so set relativePath attribute
String relativeWorkspacePath = context.moduleWorkspacePath + path.getPath().substring(context.url.length() - context.repoUrl.length());
if (".".equals(context.moduleWorkspacePath)) {
if (".".equals(context.moduleWorkspacePath) && relativeWorkspacePath.length() >= 2) {
// use 'foo', not './foo'
relativeWorkspacePath = relativeWorkspacePath.substring(2); // "./".length()
}
Expand Down

0 comments on commit 3df6c0b

Please sign in to comment.