GNU bug report logs - #49683
Unable to open file under Git VC

Previous Next

Package: emacs;

Reported by: Yan Gajdos <yan <at> gajdos.info>

Date: Wed, 21 Jul 2021 15:52:01 UTC

Severity: normal

Fixed in version 28.1

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

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Yan Gajdos <yan <at> gajdos.info>
Cc: 49683 <at> debbugs.gnu.org
Subject: bug#49683: Unable to open file under Git VC
Date: Wed, 21 Jul 2021 23:57:12 +0200
Yan Gajdos <yan <at> gajdos.info> writes:

> Explanation:
> The file used to be in a Git hierarchy, but its directory was moved, and this directory is only pointed to with a symbolic link now.
> This seems to give the impression that it both is and isn't under version control, so vc-working-revision returning nil causes the issue.
>
> Solution:
> Only attempt to get substring of rev if rev is non-nil.

Thanks; makes sense to me.  I've now pushed your patch to Emacs 28.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 3 years and 362 days ago.

Previous Next


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