summaryrefslogtreecommitdiff
path: root/subversion/libsvn_repos/list.c
diff options
context:
space:
mode:
Diffstat (limited to 'subversion/libsvn_repos/list.c')
-rw-r--r--subversion/libsvn_repos/list.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/subversion/libsvn_repos/list.c b/subversion/libsvn_repos/list.c
index ef8ac32b1b38..f620b3f62489 100644
--- a/subversion/libsvn_repos/list.c
+++ b/subversion/libsvn_repos/list.c
@@ -324,7 +324,7 @@ svn_repos_list(svn_fs_root_t *root,
svn_membuf__create(&scratch_buffer, 256, scratch_pool);
/* Actually report PATH, if it passes the filters. */
- if (matches_any(svn_dirent_dirname(path, scratch_pool), patterns,
+ if (matches_any(svn_dirent_basename(path, scratch_pool), patterns,
&scratch_buffer))
SVN_ERR(report_dirent(root, path, kind, path_info_only,
receiver, receiver_baton, scratch_pool));