* [PATCH] bup: cat-file: fix error print
@ 2021-03-21 14:23 Johannes Berg
0 siblings, 0 replies; only message in thread
From: Johannes Berg @ 2021-03-21 14:23 UTC (permalink / raw)
To: linux-wireless, bup-list
Some variable renaming and bytes issues, if a target cannot
be found in cat-file.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
---
lib/cmd/cat-file-cmd.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/cmd/cat-file-cmd.py b/lib/cmd/cat-file-cmd.py
index 388ca03abcbe..ebe27ce43a0a 100755
--- a/lib/cmd/cat-file-cmd.py
+++ b/lib/cmd/cat-file-cmd.py
@@ -56,7 +56,7 @@ resolved = vfs.resolve(repo, target, follow=False)
leaf_name, leaf_item = resolved[-1]
if not leaf_item:
log('error: cannot access %r in %r\n'
- % ('/'.join(name for name, item in resolved), path))
+ % (b'/'.join(name for name, item in resolved), target))
sys.exit(1)
mode = vfs.item_mode(leaf_item)
--
2.30.2
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2021-03-21 14:24 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-21 14:23 [PATCH] bup: cat-file: fix error print Johannes Berg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).