]> arthur.barton.de Git - bup.git/commitdiff
client.rev_list: strip() returned commit
authorRob Browning <rlb@defaultvalue.org>
Wed, 11 Oct 2017 05:05:30 +0000 (00:05 -0500)
committerRob Browning <rlb@defaultvalue.org>
Fri, 13 Oct 2017 22:57:24 +0000 (17:57 -0500)
Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
lib/bup/client.py

index cca7d6a1c144a919a148358190c721a61df444d8..7b786eb0dc1aa0d0885842c9655c65c20a4ddedc 100644 (file)
@@ -427,7 +427,7 @@ class Client:
                     raise ClientError('unexpected EOF')
                 if not line.startswith('commit '):
                     raise ClientError('unexpected line ' + repr(line))
-                yield line[7:], parse(conn)
+                yield line[7:].strip(), parse(conn)
         # FIXME: confusing
         not_ok = self.check_ok()
         if not_ok: