Subject: Re: bug#49683: Unable to open file under Git VC

From: Lars Ingebrigtsen <[email-masked]>
Date: Wed, 21 Jul 2021 23:57:12 +0200

Yan Gajdos <[email-masked]> 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