diff options
author | Torgny Nyblom <kde@nyblom.org> | 2010-09-08 21:38:06 +0200 |
---|---|---|
committer | Torgny Nyblom <kde@nyblom.org> | 2010-09-08 21:38:06 +0200 |
commit | d7ec4d0dd7b9761b6c6b10a04e120458d781416c (patch) | |
tree | c35d06b306d2587d807c1886034e1d29aac38a69 /src | |
parent | 1638aef84c8b12873672c241fd2d2b8d50b3e260 (diff) | |
download | svn2git-d7ec4d0dd7b9761b6c6b10a04e120458d781416c.tar svn2git-d7ec4d0dd7b9761b6c6b10a04e120458d781416c.tar.gz svn2git-d7ec4d0dd7b9761b6c6b10a04e120458d781416c.tar.bz2 svn2git-d7ec4d0dd7b9761b6c6b10a04e120458d781416c.tar.xz svn2git-d7ec4d0dd7b9761b6c6b10a04e120458d781416c.zip |
Only add a '/' if the path is a dir
Diffstat (limited to 'src')
-rw-r--r-- | src/svn.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
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()) { |