Explorar o código

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

John Carr %!s(int64=16) %!d(string=hai) anos
pai
achega
a33bb7ab2f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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:])