mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-16 09:14:18 +00:00
project.el: Fix in submodules with nonexistent git root (bug#80402)
project-try-vc--search in a submodule directory tries to find the git root directory, so the local variable root would be set to nil if it didn't exist. Calling project--vc-merge-submodules-p on nil would lead to a crash, so now the while loop aborts beforehand.
This commit is contained in:
parent
9a5eafa8c3
commit
e2bf7ce8b6
1 changed files with 1 additions and 0 deletions
|
|
@ -698,6 +698,7 @@ in the `project-current' call, the timeout is determined by
|
||||||
vc-handled-backends))
|
vc-handled-backends))
|
||||||
project)
|
project)
|
||||||
(while (and
|
(while (and
|
||||||
|
root
|
||||||
(eq backend 'Git)
|
(eq backend 'Git)
|
||||||
(project--vc-merge-submodules-p root)
|
(project--vc-merge-submodules-p root)
|
||||||
(project--submodule-p root))
|
(project--submodule-p root))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue