Subject: bug#70526: 29.2; package-vc-upgrade failed with error message "File is not under version control"

From: "Yi Yue" <[email-masked]>
Date: Tue, 23 Apr 2024 19:11:33 +0900

&gt; (or alternatively just binding buffer-file-name to nil after default-directory).

Yes, this is simpler.

&gt; but it feels like the fix should happen in vc.el, by being able to
&gt; communicate that we the file set should be derived from the default
&gt; directory, and the current file should be ignored...

Maybe it is better, but I don't know what will happen if we
change the implementation of `vc-deduce-fileset-1', I don't have
much knowledge of vc.el.