浏览代码

Fix bug in find_missing_objects.

Jelmer Vernooij 16 年之前
父节点
当前提交
627d52793a
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      dulwich/repo.py

+ 2 - 2
dulwich/repo.py

@@ -105,8 +105,8 @@ class Repo(object):
             graph_walker.ack(ref)
             graph_walker.ack(ref)
         ref = graph_walker.next()
         ref = graph_walker.next()
     while commits_to_send:
     while commits_to_send:
-        sha = (commits_to_send.pop(), None)
-        if sha in sha_done:
+        sha = commits_to_send.pop()
+        if (sha, None) in sha_done:
             continue
             continue
 
 
         c = self.commit(sha)
         c = self.commit(sha)