aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Guenther marcguenther@me.com <marcguenther@me.com>2010-04-14 13:10:29 +0200
committerMarc Guenther marcguenther@me.com <marcguenther@me.com>2010-04-14 13:10:29 +0200
commit96305273fb80f186fe8a1cf7b721e492d65624bd (patch)
tree6586be716b431124d96d30644f66088f8742b293
parent3bf4fcecd7f64cab1f700965816b5c1dbc8bdc39 (diff)
downloadsvn2git-96305273fb80f186fe8a1cf7b721e492d65624bd.tar
svn2git-96305273fb80f186fe8a1cf7b721e492d65624bd.tar.gz
svn2git-96305273fb80f186fe8a1cf7b721e492d65624bd.tar.bz2
svn2git-96305273fb80f186fe8a1cf7b721e492d65624bd.tar.xz
svn2git-96305273fb80f186fe8a1cf7b721e492d65624bd.zip
'prefix' rule didn't allow \1 \2 replacements
-rw-r--r--src/svn.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/svn.cpp b/src/svn.cpp
index 3435683..1bc108b 100644
--- a/src/svn.cpp
+++ b/src/svn.cpp
@@ -219,7 +219,8 @@ static void splitPathName(const Rules::Match &rule, const QString &pathName, QSt
QString path = pathName.mid(svnprefix.length());
if( !path.isEmpty() && !rule.prefix.isEmpty() )
path.prepend('/');
- *path_p = rule.prefix + path;
+ QString prefix = svnprefix.replace(rule.rx, rule.prefix);
+ *path_p = prefix + path;
}
}