aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/repository.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/repository.cpp b/src/repository.cpp
index b362bdf..7baf995 100644
--- a/src/repository.cpp
+++ b/src/repository.cpp
@@ -374,6 +374,9 @@ int Repository::resetBranch(const QString &branch, int revnum, int mark, const Q
void Repository::commit()
{
+ if (deletedBranches.isEmpty() && resetBranches.isEmpty()) {
+ return;
+ }
startFastImport();
fastImport.write(deletedBranches);
fastImport.write(resetBranches);