aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorModestas Vainius <modestas@vainius.eu>2011-04-24 22:13:28 +0300
committerModestas Vainius <modestas@vainius.eu>2011-04-24 22:13:28 +0300
commit97a6dc9b7672d324451a6f941aa7af5537aeafaa (patch)
tree631cc25fb6511e1bb19a53b96ea7297093bc4b64 /src
parent197979b6a641b8b5fa4856c700b1235491c73a41 (diff)
downloadsvn2git-97a6dc9b7672d324451a6f941aa7af5537aeafaa.tar
svn2git-97a6dc9b7672d324451a6f941aa7af5537aeafaa.tar.gz
svn2git-97a6dc9b7672d324451a6f941aa7af5537aeafaa.tar.bz2
svn2git-97a6dc9b7672d324451a6f941aa7af5537aeafaa.tar.xz
svn2git-97a6dc9b7672d324451a6f941aa7af5537aeafaa.zip
Do not recurse() into the svn path unless it is an existing directory.
Otherwise "action recurse" may fail on files or something else unknown.
Diffstat (limited to 'src')
-rw-r--r--src/svn.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/svn.cpp b/src/svn.cpp
index 09495be..3933df3 100644
--- a/src/svn.cpp
+++ b/src/svn.cpp
@@ -815,6 +815,9 @@ int SvnRevision::recurse(const char *path, const svn_fs_path_change_t *change,
if(kind == svn_node_none) {
qWarning() << "WARN: Trying to recurse using a nonexistant path" << path << ", ignoring";
return EXIT_SUCCESS;
+ } else if(kind != svn_node_dir) {
+ qWarning() << "WARN: Trying to recurse using a non-directory path" << path << ", ignoring";
+ return EXIT_SUCCESS;
}
SVN_ERR(svn_fs_dir_entries(&entries, fs_root, path, pool));