I'm trying to use Magit with TRAMP. The remote host has multiple git versions, necessitating
(add-to-list 'tramp-remote-path "/usr/sup/bin")
.emacs. However, when I run
magit-status in a TRAMP buffer, I get this error message in
magit-insert-head-branch-header: Wrong type argument: stringp, nil
And it is accompanied by this message in
Error (magit): Magit requires Git >= 2.0.0, but on /ssh:nr@homework: the version is 1.8.3. If multiple Git versions are installed on the host, then the problem might be that TRAMP uses the wrong executable. First check the value of `magit-git-executable'. Its value is used when running git locally as well as when running it on a remote host. The default value is "git", except on Windows where an absolute path is used for performance reasons. If the value already is just "git" but TRAMP never-the-less doesn't use the correct executable, then consult the info node `(tramp)Remote programs'.
Information about the context:
The value of
The value of
("/usr/sup/bin" tramp-default-remote-path "/bin" "/usr/bin" "/sbin" "/usr/sbin" "/usr/local/bin" "/usr/local/sbin" "/local/bin" "/local/freeware/bin" "/local/gnu/bin" "/usr/freeware/bin" "/usr/pkg/bin" "/usr/contrib/bin" "/opt/bin" "/opt/sbin" "/opt/local/bin").
On the remote host, there is a
/usr/sup/bin/gitwith version 2.19.1.
My question: how I can figure out the absolute pathname of the
git that Magit is running on the remote host?
Possibly relevant question: magit with tramp is not working with git correctly