mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 18:40:39 -08:00
project--git-submodules: Parse more strictly
* lisp/progmodes/project.el (project--git-submodules): Don't mistake 'load-path' for 'path' (bug#55396).
This commit is contained in:
parent
5678829a62
commit
915b34d280
1 changed files with 1 additions and 1 deletions
|
|
@ -599,7 +599,7 @@ backend implementation of `project-external-roots'.")
|
|||
(insert-file-contents ".gitmodules")
|
||||
(let (res)
|
||||
(goto-char (point-min))
|
||||
(while (re-search-forward "path *= *\\(.+\\)" nil t)
|
||||
(while (re-search-forward "^[ \t]*path *= *\\(.+\\)" nil t)
|
||||
(push (match-string 1) res))
|
||||
(nreverse res)))
|
||||
(file-missing nil)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue