From: Ori Avtalion <ori@avtalion.name>
To: git@vger.kernel.org
Subject: [BUG] 'git show' gives duplicate errors for ambiguous args
Date: Sat, 08 Sep 2012 21:43:03 +0300 [thread overview]
Message-ID: <504B91B7.1000406@avtalion.name> (raw)
With the git.git repository:
$ git show abcd
error: short SHA1 abcd is ambiguous.
error: short SHA1 abcd is ambiguous.
fatal: ambiguous argument 'abcd': unknown revision or path not in the
working tree.
Use '--' to separate paths from revisions
The "is ambiguous" message shouldn't be shown twice.
The first error is printed by revision.c:1796 (a call to
handle_revision_arg), and the second by revision.c:1808 (a call to
verify_filename). I don't see an easy way to suppress it.
reply other threads:[~2012-09-08 18:43 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=504B91B7.1000406@avtalion.name \
--to=ori@avtalion.name \
--cc=git@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.