handle an empty input stream (Gonéri Le Bouder)
[jelmer/python-fastimport.git] / processors / generic_processor.py
index 1a1f89417763807a2b89ce6ccc3544c0bb1d4c3d..43197f99c1763c9447d689eb35e4ba680a689b5d 100644 (file)
@@ -287,6 +287,10 @@ class GenericProcessor(processor.ImportProcessor):
             marks_file.export_marks(self.params.get("export-marks"),
                 self.cache_mgr.revision_ids)
 
+        if self.cache_mgr.last_ref == None:
+            """Nothing to refresh"""
+            return
+
         # Update the branches
         self.note("Updating branch information ...")
         updater = branch_updater.BranchUpdater(self.repo, self.branch,