]> git.eshelyaron.com Git - emacs.git/commitdiff
Use directory-name-p in vc-git--file-list-is-rootdir
authorDmitry Gutov <dmitry@gutov.dev>
Sun, 29 Sep 2024 01:11:52 +0000 (04:11 +0300)
committerEshel Yaron <me@eshelyaron.com>
Mon, 30 Sep 2024 19:41:20 +0000 (21:41 +0200)
* lisp/vc/vc-git.el (vc-git--file-list-is-rootdir):
Use directory-name-p.

(cherry picked from commit dfdeee839ac5475a7788707228dcbc998426ad7f)

lisp/vc/vc-git.el

index 2a7c8ae5fc4869e58f7948f792e40d486ffb4616..05400523048ac11a022141fecd9142245d811f94 100644 (file)
@@ -2211,7 +2211,7 @@ The difference to `vc-do-command' is that this function always invokes
        (let ((file (or (car-safe file-or-list)
                        file-or-list)))
          (and file
-              (eq ?/ (aref file (1- (length file))))
+              (directory-name-p file)
               (equal file (vc-git-root file))))))
 
 (defun vc-git--empty-db-p ()