linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Johannes Berg <johannes@sipsolutions.net>
To: linux-wireless@vger.kernel.org, bup-list@googlegroups.com
Subject: [PATCH] bup: cat-file: fix error print
Date: Sun, 21 Mar 2021 15:23:33 +0100	[thread overview]
Message-ID: <20210321142333.16326-1-johannes@sipsolutions.net> (raw)

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


                 reply	other threads:[~2021-03-21 14:24 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210321142333.16326-1-johannes@sipsolutions.net \
    --to=johannes@sipsolutions.net \
    --cc=bup-list@googlegroups.com \
    --cc=linux-wireless@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).