all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* project.el: git submodules?
@ 2020-05-12 15:31 Gary Oberbrunner
  2020-05-12 15:53 ` Dmitry Gutov
  0 siblings, 1 reply; 34+ messages in thread
From: Gary Oberbrunner @ 2020-05-12 15:31 UTC (permalink / raw)
  To: emacs-devel

In project.el as of 3f2788d4acd53 (Dec 27 2019), there is this code:

+          (pcase backend
+            ('Git
+             ;; Don't stop at submodule boundary.
+             (or (vc-file-getprop dir 'project-git-root)
+                 (vc-file-setprop dir 'project-git-root
+                                  (vc-find-root dir ".git/"))))

That is not working in my situation, by which I mean I call
(project-current) in a buffer in a git submodule and it returns '(Git
. "submodule-root") rather than the actual project root, despite the
comment there that says it shouldn't do that. Following through the
code I don't see how it's supposed to be detecting that it's in a
submodule. Looks like it just looks upwards for the dominating ".git/"
dir.

In a simple test it appears to work, but not in my real-world case.
Before I dig deeper into it, can anyone (Dmitry?) tell me where to
look for the submodule-detection logic?

-- 
Gary



^ permalink raw reply	[flat|nested] 34+ messages in thread

end of thread, other threads:[~2020-05-15 19:17 UTC | newest]

Thread overview: 34+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-05-12 15:31 project.el: git submodules? Gary Oberbrunner
2020-05-12 15:53 ` Dmitry Gutov
2020-05-12 18:05   ` Michael Welsh Duggan
2020-05-12 18:27     ` Dmitry Gutov
2020-05-12 19:36       ` Stefan Monnier
2020-05-12 19:39         ` Dmitry Gutov
2020-05-12 20:45         ` Michael Welsh Duggan
2020-05-12 20:53           ` Dmitry Gutov
2020-05-12 21:04             ` Stefan Monnier
2020-05-12 21:06               ` Dmitry Gutov
2020-05-12 21:09                 ` Stefan Monnier
2020-05-14  0:32                   ` Dmitry Gutov
2020-05-14  2:55                     ` Stefan Monnier
2020-05-14 15:04                       ` Dmitry Gutov
2020-05-14 17:57                         ` Stefan Monnier
2020-05-14 19:29                           ` Dmitry Gutov
2020-05-14 20:01                             ` Stefan Monnier
2020-05-14 20:13                               ` Dmitry Gutov
2020-05-14 21:17                                 ` Dmitry Gutov
2020-05-14 21:38                                   ` Michael Welsh Duggan
2020-05-15  1:21                                     ` Dmitry Gutov
2020-05-15  5:11                                       ` Dmitry Gutov
2020-05-15  7:40                                         ` Kévin Le Gouguec
2020-05-15 19:17                                           ` Dmitry Gutov
2020-05-12 20:53           ` Michael Welsh Duggan
2020-05-12 20:51       ` Michael Welsh Duggan
2020-05-12 20:58     ` John Yates
2020-05-13  7:19       ` Andreas Schwab
2020-05-12 18:33   ` Gary Oberbrunner
2020-05-12 19:28     ` Dmitry Gutov
2020-05-12 19:34       ` Gary Oberbrunner
2020-05-12 19:41         ` Dmitry Gutov
2020-05-12 19:44     ` Doug Davis
2020-05-12 19:50       ` Gary Oberbrunner

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.