]> git.eshelyaron.com Git - emacs.git/commitdiff
project--git-submodules: Parse more strictly
authorDmitry Gutov <dgutov@yandex.ru>
Tue, 14 Jun 2022 01:00:22 +0000 (04:00 +0300)
committerDmitry Gutov <dgutov@yandex.ru>
Tue, 14 Jun 2022 01:00:22 +0000 (04:00 +0300)
* lisp/progmodes/project.el (project--git-submodules):
Don't mistake 'load-path' for 'path' (bug#55396).

lisp/progmodes/project.el

index 859ad2e047bd29f2f0c0bffba5abe598afe7eb33..f4d6742ed80d855c146baf5bc6935881a02c8216 100644 (file)
@@ -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)))