]> andersk Git - svn-all-fast-export.git/commitdiff
Do not try to recurse into files when under a "recurse" action
authorThiago Macieira <thiago.macieira@trolltech.com>
Mon, 18 Aug 2008 14:47:19 +0000 (16:47 +0200)
committerThiago Macieira <thiago.macieira@trolltech.com>
Mon, 18 Aug 2008 14:47:19 +0000 (16:47 +0200)
src/svn.cpp

index 4062f31a3d7e097f28dbde523dd4bdc650f59cb0..b3b7d9b5c4d314ba52249bb2e6b61ee3efab7f7d 100644 (file)
@@ -631,6 +631,9 @@ int SvnRevision::recurse(const char *path, const svn_fs_path_change_t *change,
         apr_hash_this(i, &vkey, NULL, &value);
 
         svn_fs_dirent_t *dirent = reinterpret_cast<svn_fs_dirent_t *>(value);
+        if (dirent->kind != svn_node_dir)
+            continue;           // not a directory, so can't recurse; skip
+
         QByteArray entry = path + QByteArray("/") + dirent->name;
         QByteArray entryFrom;
         if (path_from)
This page took 0.038031 seconds and 5 git commands to generate.