diff options
| author | Dmitry Gutov | 2024-09-29 04:11:52 +0300 |
|---|---|---|
| committer | Dmitry Gutov | 2024-09-29 04:11:52 +0300 |
| commit | dfdeee839ac5475a7788707228dcbc998426ad7f (patch) | |
| tree | 223d60a7474d560edf0bf365f4846880661ca626 | |
| parent | 8d9a4647fbc6c57e82045ecd2b3f157ece399e9e (diff) | |
| download | emacs-dfdeee839ac5475a7788707228dcbc998426ad7f.tar.gz emacs-dfdeee839ac5475a7788707228dcbc998426ad7f.zip | |
Use directory-name-p in vc-git--file-list-is-rootdir
* lisp/vc/vc-git.el (vc-git--file-list-is-rootdir):
Use directory-name-p.
| -rw-r--r-- | lisp/vc/vc-git.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/vc/vc-git.el b/lisp/vc/vc-git.el index 2a7c8ae5fc4..05400523048 100644 --- a/lisp/vc/vc-git.el +++ b/lisp/vc/vc-git.el | |||
| @@ -2211,7 +2211,7 @@ The difference to `vc-do-command' is that this function always invokes | |||
| 2211 | (let ((file (or (car-safe file-or-list) | 2211 | (let ((file (or (car-safe file-or-list) |
| 2212 | file-or-list))) | 2212 | file-or-list))) |
| 2213 | (and file | 2213 | (and file |
| 2214 | (eq ?/ (aref file (1- (length file)))) | 2214 | (directory-name-p file) |
| 2215 | (equal file (vc-git-root file)))))) | 2215 | (equal file (vc-git-root file)))))) |
| 2216 | 2216 | ||
| 2217 | (defun vc-git--empty-db-p () | 2217 | (defun vc-git--empty-db-p () |