We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dcd8be1 commit 16704b2Copy full SHA for 16704b2
src/main/java/hudson/plugins/scm_sync_configuration/model/ChangeSet.java
@@ -58,8 +58,10 @@ public void registerPath(String path) {
58
public void registerPathForDeletion(String path){
59
// We should determine if path is a directory by watching scm path (and not hudson path) because in most of time,
60
// when we are here, directory is already deleted in hudson hierarchy...
61
- boolean isDirectory = new Path(path).getScmFile().isDirectory();
62
- pathsToDelete.add(new Path(path, isDirectory));
+ if(new Path(path).getScmFile().exists()) {
+ boolean isDirectory = new Path(path).getScmFile().isDirectory();
63
+ pathsToDelete.add(new Path(path, isDirectory));
64
+ }
65
}
66
67
public boolean isEmpty(){
0 commit comments