From: Lars Ingebrigtsen <larsi@gnus.org>
To: Ed Avis <eda@waniasset.com>
Cc: 'Dmitry Gutov' <dgutov@yandex.ru>,
"21166@debbugs.gnu.org" <21166@debbugs.gnu.org>
Subject: bug#21166: 24.4; vc-mode and git error on newly added file to new repository
Date: Tue, 25 Aug 2020 11:04:07 +0200 [thread overview]
Message-ID: <87ft8bdrlk.fsf@gnus.org> (raw)
In-Reply-To: <7E039918541B4C4183BFDB8F015C743032E5E6EC@WCL-EXCH02.wcl.local> (Ed Avis's message of "Tue, 4 Aug 2015 14:58:10 +0000")
Ed Avis <eda@waniasset.com> writes:
> How about this: check for the error message, and if found then just
> print 'empty tree, so no diff to print'.
> That would be good enough. No need for an extra process call either
> before or after.
This was five years ago. I tried this in Emacs 28, and the problem is
still present.
As Dmitry says, this is a quite unusual situation, so perhaps the
current error message
fatal: bad revision 'HEAD'
is fine? It's slightly confusing... but not very.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
next prev parent reply other threads:[~2020-08-25 9:04 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-31 14:43 bug#21166: 24.4; vc-mode and git error on newly added file to new repository Ed Avis
2015-07-31 17:25 ` Dmitry Gutov
2015-07-31 17:27 ` Ed Avis
2015-07-31 17:44 ` Dmitry Gutov
2015-08-04 14:58 ` Ed Avis
2020-08-25 9:04 ` Lars Ingebrigtsen [this message]
2020-10-11 3:07 ` Lars Ingebrigtsen
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=87ft8bdrlk.fsf@gnus.org \
--to=larsi@gnus.org \
--cc=21166@debbugs.gnu.org \
--cc=dgutov@yandex.ru \
--cc=eda@waniasset.com \
/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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
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.