>>107719361
>TLDR: recursive check for .gitmodule file over each submodule in repo, the operation is too expensive for emacs due to having to wait for a response from remote to asses failure, the constant failures and retries kill performance on tramp.
You'll need to disable submodule merging for all repos read over tramp by setting project-vc-merge-submodules to nil
> project-vc-merge-submodules: Non-nil to consider submodules part of the parent project.
Something like this maybe? Not completely sure haven't used it myself.
;; Disable submodule merging for all remote connections
(connection-local-set-profile-variables
'remote-project-profile
'((project-vc-merge-submodules . nil)))
(connection-local-set-profiles
'(:application tramp)
'remote-project-profile)
Comment too long. Click here to view the full text.