Skip to content

Commit 1a2445c

Browse files
muffinmaddgutov
authored andcommitted
Make ls-files-unknown only return proper files, not directories
* lisp/vc/vc-git.el (vc-git-dir-status-goto-stage): Make ls-files-unknown only return proper files, not directories (bug#38615).
1 parent 77fe255 commit 1a2445c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lisp/vc/vc-git.el

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -620,8 +620,7 @@ or an empty string if none."
620620
"ls-files" "-z" "-u" "--"))
621621
('ls-files-unknown
622622
(vc-git-command (current-buffer) 'async files
623-
"ls-files" "-z" "-o" "--directory"
624-
"--no-empty-directory" "--exclude-standard" "--"))
623+
"ls-files" "-z" "-o" "--exclude-standard" "--"))
625624
('ls-files-ignored
626625
(vc-git-command (current-buffer) 'async files
627626
"ls-files" "-z" "-o" "-i" "--directory"

0 commit comments

Comments
 (0)