diff options
author | Modestas Vainius <modestas@vainius.eu> | 2011-04-24 22:13:28 +0300 |
---|---|---|
committer | Modestas Vainius <modestas@vainius.eu> | 2011-04-24 22:13:28 +0300 |
commit | 97a6dc9b7672d324451a6f941aa7af5537aeafaa (patch) | |
tree | 631cc25fb6511e1bb19a53b96ea7297093bc4b64 | |
parent | 197979b6a641b8b5fa4856c700b1235491c73a41 (diff) | |
download | svn2git-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.
-rw-r--r-- | src/svn.cpp | 3 |
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)); |