emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 5037b9eed71: fix: project submodule detection does not work for w


From: Dmitry Gutov
Subject: master 5037b9eed71: fix: project submodule detection does not work for worktrees
Date: Thu, 14 Mar 2024 22:26:20 -0400 (EDT)

branch: master
commit 5037b9eed711dec0ef73dd6fca1e60e0b521c13b
Author: Patrick Bader <patrick.bader@thingos.io>
Commit: Dmitry Gutov <dmitry@gutov.dev>

    fix: project submodule detection does not work for worktrees
---
 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 a7c164f5857..7103b36a892 100644
--- a/lisp/progmodes/project.el
+++ b/lisp/progmodes/project.el
@@ -602,7 +602,7 @@ See `project-vc-extra-root-markers' for the marker value 
format.")
         (goto-char (point-min))
         ;; Kind of a hack to distinguish a submodule from
         ;; other cases of .git files pointing elsewhere.
-        (looking-at "gitdir: [./]+/\\.git/modules/"))
+        (looking-at "gitdir: .+/\\.git/\\(worktrees/.*\\)?modules/"))
       t)
      (t nil))))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]