aboutsummaryrefslogtreecommitdiffstats
path: root/src/repository.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/repository.cpp')
-rw-r--r--src/repository.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/repository.cpp b/src/repository.cpp
index df0df8f..922027d 100644
--- a/src/repository.cpp
+++ b/src/repository.cpp
@@ -298,7 +298,10 @@ void Repository::Transaction::setLog(const QByteArray &l)
void Repository::Transaction::deleteFile(const QString &path)
{
- deletedFiles.append(path);
+ QString pathNoSlash = path;
+ if(pathNoSlash.endsWith('/'))
+ pathNoSlash.chop(1);
+ deletedFiles.append(pathNoSlash);
}
QIODevice *Repository::Transaction::addFile(const QString &path, int mode, qint64 length)