浏览代码

Deal with removed refs.

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

+ 2 - 2
dulwich/client.py

@@ -103,9 +103,9 @@ class GitClient(object):
             old_sha1 = old_refs.get(refname, "0" * 40)
             old_sha1 = old_refs.get(refname, "0" * 40)
             new_sha1 = new_refs.get(refname, "0" * 40)
             new_sha1 = new_refs.get(refname, "0" * 40)
             if sent_capabilities:
             if sent_capabilities:
-                self.proto.write_pkt_line("%s %s %s" % (old_sha1, new_sha1, changed_ref))
+                self.proto.write_pkt_line("%s %s %s" % (old_sha1, new_sha1, refname))
             else:
             else:
-                self.proto.write_pkt_line("%s %s %s\0%s" % (old_sha1, new_sha1, changed_ref, self.capabilities()))
+                self.proto.write_pkt_line("%s %s %s\0%s" % (old_sha1, new_sha1, refname, self.capabilities()))
                 sent_capabilities = True
                 sent_capabilities = True
             if not new_sha1 in (have, "0" * 40):
             if not new_sha1 in (have, "0" * 40):
                 want.append(new_sha1)
                 want.append(new_sha1)