Variable: projectile-git-submodule-command
projectile-git-submodule-command is a customizable variable defined in
projectile.el.
Value
"git submodule --quiet foreach 'echo $displaypath' | tr '\\n' '\\0'"
Documentation
Command used by projectile to list submodules of a given git repository.
Set to nil to disable listing submodules contents.
The default listing no longer shells out: when this variable has its default value the submodules are listed by running git directly, with no shell involved (see issue #1600). Customizing the variable switches back to running it as a shell command.
This variable was added, or its default value changed, in projectile version 0.12.0.
Source Code
;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(defcustom projectile-git-submodule-command projectile--default-git-submodule-command
"Command used by projectile to list submodules of a given git repository.
Set to nil to disable listing submodules contents.
The default listing no longer shells out: when this variable has its
default value the submodules are listed by running git directly, with
no shell involved (see issue #1600). Customizing the variable switches
back to running it as a shell command."
:group 'projectile
:type '(choice (const :tag "Don't list submodules" nil)
(string :tag "Command"))
:package-version '(projectile . "0.12.0"))