2
0
Эх сурвалжийг харах

Strip newline from final ACKed SHA while fetching packs.

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Mike Edgar 10 жил өмнө
parent
commit
5d994163ef
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      dulwich/client.py

+ 1 - 1
dulwich/client.py

@@ -390,7 +390,7 @@ class GitClient(object):
         while pkt:
             parts = pkt.rstrip('\n').split(' ')
             if parts[0] == 'ACK':
-                graph_walker.ack(pkt.split(' ')[1])
+                graph_walker.ack(parts[1])
             if len(parts) < 3 or parts[2] not in (
                     'ready', 'continue', 'common'):
                 break