From: Andrii Kolomoiets Date: Mon, 16 Dec 2019 23:49:34 +0000 (+0200) Subject: Make ls-files-unknown only return proper files, not directories X-Git-Tag: emacs-27.0.90~338 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=1a2445c45f901d9d939f2992dd8e616e5d7cb9ca;p=emacs.git 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). --- 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"