Dulwich.io dulwich / f1421c8
Don't send a depth of "None" to the server when graph walker supports shallow. Ideally this would have a test, but we don't have good tests for shallow anyway. :-/ Fixes #747 Jelmer Vernooń≥ a month ago
2 changed file(s) with 6 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
00 0.19.16 UNRELEASED
1
2 * Don't send "deepen None" to server if graph walker
3 supports shallow. (Jelmer Vernooń≥, #747)
14
25 0.19.15 2020-01-26
36
640640 "depth")
641641 for sha in graph_walker.shallow:
642642 proto.write_pkt_line(COMMAND_SHALLOW + b' ' + sha + b'\n')
643 proto.write_pkt_line(COMMAND_DEEPEN + b' ' +
644 str(depth).encode('ascii') + b'\n')
643 if depth is not None:
644 proto.write_pkt_line(COMMAND_DEEPEN + b' ' +
645 str(depth).encode('ascii') + b'\n')
645646 proto.write_pkt_line(None)
646647 if can_read is not None:
647648 (new_shallow, new_unshallow) = _read_shallow_updates(proto)