Add Index.commit.
[jelmer/dulwich-libgit2.git] / dulwich / repo.py
index ef3e9ffe422d56e4afdfe000d9a0086ff4dd8541..4856e80072157159444e862bc1676ecd8c159b05 100644 (file)
@@ -774,8 +774,7 @@ class BaseRepo(object):
                     break
                 i += 1
             history.insert(i, commit)
-            parents = commit.parents
-            pending_commits += parents
+            pending_commits += commit.parents
         history.reverse()
         return history