]> arthur.barton.de Git - bup.git/commitdiff
index: fix -H option
authorJohannes Berg <johannes@sipsolutions.net>
Wed, 13 May 2020 20:22:04 +0000 (22:22 +0200)
committerRob Browning <rlb@defaultvalue.org>
Tue, 26 May 2020 23:35:42 +0000 (18:35 -0500)
hexlify(ent) doesn't work, that needs to be ent.sha. Fix it.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Reviewed-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
cmd/index-cmd.py

index f5ab59252eb30bacf3c11381d1a8e9cf808e9788..b131db990264b9079c2b41e1c2007d16075c01ff 100755 (executable)
@@ -306,7 +306,7 @@ if opt['print'] or opt.status or opt.modified:
             else:
                 line += b'  '
         if opt.hash:
-            line += hexlify(ent) + b' '
+            line += hexlify(ent.sha) + b' '
         if opt.long:
             line += b'%7s %7s ' % (oct(ent.mode), oct(ent.gitmode))
         out.write(line + (name or b'./') + b'\n')