Browse Source

If no capabilities, still return a tuple or we get unpacking fail

John Carr 16 năm trước cách đây
mục cha
commit
a33bb7ab2f
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      dulwich/protocol.py

+ 1 - 1
dulwich/protocol.py

@@ -97,7 +97,7 @@ class Protocol(object):
 
 def extract_capabilities(text):
     if not "\0" in text:
-        return text
+        return text, None
     capabilities = text.split("\0")
     return (capabilities[0], capabilities[1:])