]> andersk Git - svn-all-fast-export.git/blobdiff - src/repository.cpp
Don't crash when running in dry-mode
[svn-all-fast-export.git] / src / repository.cpp
index 1cb7c410a0370f38f4b76b51f94829fc4c1230b0..bec114b4553c9fea8842e85bc7cf3682ad7a544c 100644 (file)
@@ -201,7 +201,11 @@ void Repository::Transaction::commit()
         s << "committer " << author << ' ' << datetime << " -0000" << endl;
 
         Branch &br = repository->branches[branch];
-        Q_ASSERT(br.created);
+        if (!br.created) {
+            qWarning() << "Branch" << branch << "doesn't exist at revision"
+                       << revnum << "-- did you resume from the wrong revision?";
+            br.created = revnum;
+        }
 
         s << "data " << message.length() << endl;
     }
This page took 0.056192 seconds and 4 git commands to generate.