From 1a2445c45f901d9d939f2992dd8e616e5d7cb9ca Mon Sep 17 00:00:00 2001 From: Andrii Kolomoiets Date: Tue, 17 Dec 2019 01:49:34 +0200 Subject: [PATCH] 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). --- lisp/vc/vc-git.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lisp/vc/vc-git.el b/lisp/vc/vc-git.el index 021b48a5d1e..cdb50db0d03 100644 --- a/lisp/vc/vc-git.el +++ b/lisp/vc/vc-git.el @@ -620,8 +620,7 @@ or an empty string if none." "ls-files" "-z" "-u" "--")) ('ls-files-unknown (vc-git-command (current-buffer) 'async files - "ls-files" "-z" "-o" "--directory" - "--no-empty-directory" "--exclude-standard" "--")) + "ls-files" "-z" "-o" "--exclude-standard" "--")) ('ls-files-ignored (vc-git-command (current-buffer) 'async files "ls-files" "-z" "-o" "-i" "--directory" -- 2.39.2