Skip to content
Snippets Groups Projects
Commit 8e61d7a2 authored by Sean Farley's avatar Sean Farley
Browse files

compat: add a stub FetchPackResult class for use with older dulwich

New dulwich refactored the object it returns from fetch_pack (it use to
be a dict but is now an object of two dicts, one for ref and the other
for symrefs, and a string containing the agent.
parent 3799bf88
No related merge requests found
......@@ -63,4 +63,10 @@
from dulwich.errors import GitProtocolError
from dulwich.protocol import extract_capabilities
class FetchPackResult(object):
"""Result of a fetch-pack operation.
:var refs: Dictionary with all remote refs
:var symrefs: Dictionary with remote symrefs
:var agent: User agent string
"""
......@@ -66,4 +72,8 @@
def __init__(self, refs, symrefs, agent):
self.refs = refs
self.symrefs = symrefs
self.agent = agent
def read_pkt_refs(proto):
server_capabilities = None
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment