From 915b34d2800fe0014b12eda0bbf5def976c14c32 Mon Sep 17 00:00:00 2001 From: Dmitry Gutov Date: Tue, 14 Jun 2022 04:00:22 +0300 Subject: [PATCH] project--git-submodules: Parse more strictly * lisp/progmodes/project.el (project--git-submodules): Don't mistake 'load-path' for 'path' (bug#55396). --- lisp/progmodes/project.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/progmodes/project.el b/lisp/progmodes/project.el index 859ad2e047b..f4d6742ed80 100644 --- a/lisp/progmodes/project.el +++ b/lisp/progmodes/project.el @@ -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))) -- 2.39.2