Skip to content

Commit 97a6dc9

Browse files
committed
Do not recurse() into the svn path unless it is an existing directory.
Otherwise "action recurse" may fail on files or something else unknown.
1 parent 197979b commit 97a6dc9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/svn.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -815,6 +815,9 @@ int SvnRevision::recurse(const char *path, const svn_fs_path_change_t *change,
815815
if(kind == svn_node_none) {
816816
qWarning() << "WARN: Trying to recurse using a nonexistant path" << path << ", ignoring";
817817
return EXIT_SUCCESS;
818+
} else if(kind != svn_node_dir) {
819+
qWarning() << "WARN: Trying to recurse using a non-directory path" << path << ", ignoring";
820+
return EXIT_SUCCESS;
818821
}
819822

820823
SVN_ERR(svn_fs_dir_entries(&entries, fs_root, path, pool));

0 commit comments

Comments
 (0)