mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-05 22:20:24 -08:00
[project-vc]: Make project-buffers more consistent with project-files
* lisp/progmodes/project.el (project-buffers): Catch 'file-missing' error to continue anyway if .git does not exist (bug#74826).
This commit is contained in:
parent
a720458fdd
commit
afe776051e
1 changed files with 3 additions and 1 deletions
|
|
@ -848,7 +848,9 @@ DIRS must contain directory names."
|
|||
(cl-defmethod project-buffers ((project (head vc)))
|
||||
(let* ((root (expand-file-name (file-name-as-directory (project-root project))))
|
||||
(modules (unless (or (project--vc-merge-submodules-p root)
|
||||
(project--submodule-p root))
|
||||
(condition-case nil
|
||||
(project--submodule-p root)
|
||||
(file-missing nil)))
|
||||
(mapcar
|
||||
(lambda (m) (format "%s%s/" root m))
|
||||
(project--git-submodules))))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue