]> andersk Git - svn-all-fast-export.git/blobdiff - src/repository.cpp
write to disk every 10000 commits, not 9999 times each 10000 commits
[svn-all-fast-export.git] / src / repository.cpp
index 76171abb5bf7ded4a26c23e2ef0dbd3ca18fec44..21641e75868c48a8fb0162e682125801015e7453 100644 (file)
@@ -120,7 +120,7 @@ Repository::Transaction *Repository::newTransaction(const QString &branch, const
     txn->lastmark = revnum;
 
     startFastImport();
-    if (++commitCount % 10000)
+    if ((++commitCount % 10000) == 0)
         // write everything to disk every 10000 commits
         fastImport.write("checkpoint\n");
     return txn;
This page took 0.051707 seconds and 4 git commands to generate.