GNU bug report logs - #21166
24.4; vc-mode and git error on newly added file to new repository

Previous Next

Package: emacs;

Reported by: Ed Avis <eda <at> waniasset.com>

Date: Fri, 31 Jul 2015 14:44:02 UTC

Severity: minor

Tags: confirmed

Found in versions 24.5, 24.4

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #26 received at 21166 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Ed Avis <eda <at> waniasset.com>
Cc: "21166 <at> debbugs.gnu.org" <21166 <at> debbugs.gnu.org>,
 'Dmitry Gutov' <dgutov <at> yandex.ru>
Subject: Re: 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
Ed Avis <eda <at> 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




This bug report was last modified 4 years and 227 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.