Subject: Re: bug#57777: 28.2; `vc-dir' picks incorrect backend.

From: Lars Ingebrigtsen <[email-masked]>
Date: Wed, 14 Sep 2022 16:32:55 +0200

Mike Woolley <[email-masked]> writes:

> 1 Start with a directory having both .Git and CVS sub-directories.
> 2 Emacs -Q
> 3 (setq vc-handled-backends '(Git CVS))
> 4 (vc-dir)
> 5 Observe `vc-dir’ incorrectly uses the CVS backend rather than Git.

I'm unable to reproduce this problem with Emacs 28.2 (or the current
trunk).

I did:

mkdir /tmp/vc /tmp/vc/.git /tmp/vc/CVS
emacs -Q

and then:

(setq vc-handled-backends '(Git CVS))
(vc-dir "/tmp/vc")

And got:

Are there any steps missing in your recipe that's needed to reproduce
the problem?