diff options
-rw-r--r-- | src/svn.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/svn.cpp b/src/svn.cpp index aff7191..3416efe 100644 --- a/src/svn.cpp +++ b/src/svn.cpp @@ -159,7 +159,10 @@ int SvnPrivate::youngestRevision() int SvnPrivate::openRepository(const QString &pathToRepository) { svn_repos_t *repos; - SVN_ERR(svn_repos_open(&repos, QFile::encodeName(pathToRepository), global_pool)); + QString path = pathToRepository; + while (path.endsWith('/')) // no trailing slash allowed + path = path.mid(0, path.length()-1); + SVN_ERR(svn_repos_open(&repos, QFile::encodeName(path), global_pool)); fs = svn_repos_fs(repos); return EXIT_SUCCESS; |