Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo


Diff of /ForgeGit/forgegit/model/git_repo.py [d70fcc] .. [5cb772] Maximize Restore

  Switch to side-by-side view

--- a/ForgeGit/forgegit/model/git_repo.py
+++ b/ForgeGit/forgegit/model/git_repo.py
@@ -173,7 +173,8 @@
             if tag.is_valid() ]
-    def refresh_commit(self, ci, seen_object_ids, lazy=True):
+    def refresh_commit(self, ci, seen_object_ids=None, lazy=True):
+        if seen_object_ids is None: seen_object_ids = set()
         obj = self._git.commit(ci.object_id)
         ci.tree_id = obj.tree.hexsha
         # Save commit metadata