aboutsummaryrefslogtreecommitdiffstats
path: root/src/ruleparser.cpp
diff options
context:
space:
mode:
authorMarc Guenther marcguenther@me.com <marcguenther@me.com>2010-04-14 16:04:15 +0200
committerMarc Guenther marcguenther@me.com <marcguenther@me.com>2010-04-14 16:04:15 +0200
commit1841b37e70d582b384f81a5cb51f6ab30863ea48 (patch)
tree4ec233d4d62e60bd2bda9eb846c371632f0e3342 /src/ruleparser.cpp
parent96305273fb80f186fe8a1cf7b721e492d65624bd (diff)
parent437e0dbb1551dbce774a1c5036e17a8e30c8e699 (diff)
downloadsvn2git-1841b37e70d582b384f81a5cb51f6ab30863ea48.tar
svn2git-1841b37e70d582b384f81a5cb51f6ab30863ea48.tar.gz
svn2git-1841b37e70d582b384f81a5cb51f6ab30863ea48.tar.bz2
svn2git-1841b37e70d582b384f81a5cb51f6ab30863ea48.tar.xz
svn2git-1841b37e70d582b384f81a5cb51f6ab30863ea48.zip
Merge remote branch 'svn2git/master'
Conflicts: src/svn.cpp
Diffstat (limited to 'src/ruleparser.cpp')
-rw-r--r--src/ruleparser.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ruleparser.cpp b/src/ruleparser.cpp
index 6e78efe..905115c 100644
--- a/src/ruleparser.cpp
+++ b/src/ruleparser.cpp
@@ -103,8 +103,8 @@ void Rules::load()
match.prefix = matchPrefixLine.cap(1);
if( match.prefix.startsWith('/'))
match.prefix = match.prefix.mid(1);
- if( match.prefix.endsWith('/'))
- match.prefix.chop(1);
+ if( !match.prefix.endsWith('/'))
+ match.prefix.append('/');
continue;
} else if (matchActionLine.exactMatch(line)) {
QString action = matchActionLine.cap(1);