From d7ec4d0dd7b9761b6c6b10a04e120458d781416c Mon Sep 17 00:00:00 2001 From: Torgny Nyblom Date: Wed, 8 Sep 2010 21:38:06 +0200 Subject: Only add a '/' if the path is a dir --- src/svn.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/svn.cpp b/src/svn.cpp index 58d632b..bf1443c 100644 --- a/src/svn.cpp +++ b/src/svn.cpp @@ -637,7 +637,13 @@ int SvnRevision::exportInternal(const char *key, const svn_fs_path_change_t *cha QString prevsvnprefix, prevrepository, prevbranch, prevpath; if (path_from != NULL) { - previous = QString::fromUtf8(path_from) + '/'; + previous = QString::fromUtf8(path_from); + AprAutoPool revpool(pool.data()); + svn_boolean_t is_dir; + SVN_ERR(svn_fs_is_dir(&is_dir, fs_root, path_from, revpool)); + if (is_dir) { + previous += '/'; + } MatchRuleList::ConstIterator prevmatch = findMatchRule(matchRules, rev_from, previous, NoIgnoreRule); if (prevmatch != matchRules.constEnd()) { -- cgit v1.2.1