dulwich-users team mailing list archive
-
dulwich-users team
-
Mailing list archive
-
Message #00671
[PATCH 07/13] server: Correctly advertise capabilities during receive-pack.
From: Dave Borowitz <dborowitz@xxxxxxxxxx>
Change-Id: Iffb5b09cbcf18954e9c7030712eb971ea0bad167
---
NEWS | 2 ++
dulwich/server.py | 2 +-
2 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/NEWS b/NEWS
index 9d5cf09..cfe0db2 100644
--- a/NEWS
+++ b/NEWS
@@ -49,6 +49,8 @@
* Don't send a pack with duplicates of the same object. (Dave Borowitz)
+ * Correctly advertise capabilities during receive-pack. (Dave Borowitz)
+
API CHANGES
* write_pack no longer takes the num_objects argument and requires an object
diff --git a/dulwich/server.py b/dulwich/server.py
index 132b27f..5cca17c 100644
--- a/dulwich/server.py
+++ b/dulwich/server.py
@@ -660,7 +660,7 @@ class ReceivePackHandler(Handler):
ref = refs[i]
self.proto.write_pkt_line("%s %s\n" % (ref[1], ref[0]))
else:
- self.proto.write_pkt_line("%s capabilities^{} %s" % (
+ self.proto.write_pkt_line("%s capabilities^{}\0%s" % (
ZERO_SHA, self.capability_line()))
self.proto.write("0000")
--
1.7.3.1
References