S Neaves <[email protected]> writes:

> Hello List,

Hi Sam,

> i.e. I can not get magit to work on my server accessed with tramp
> correctly.
>
> (require 'tramp)
> (push "/cm/shared/tools/git-2.18.0/bin/git" tramp-remote-path)
>
> to my .emacs
>
> and deleting my tramp file in .emacs.d
>
> If I use dired over tramp to get to a remote folder and then run:
>
> M-! which git
> which: no git in
> (/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/local/bin)

Maybe you should flush Tramp caches explicitly. Execute "M-x
tramp-cleanup-all-connections" and try then "M-! which git". Another
command to check is "M-! echo $PATH".

> So these commands are not finding git, but if I M-x shell on the
> server and run git it works fine.

I suspect that the directory, where git is located, is added to the
$PATH environment in your remote ~/.profile. In this case, I recommend
to to use

(push 'tramp-own-remote-path tramp-remote-path)

> Many thanks,
>
> Sam

Best regards, Michael.

_______________________________________________
Tramp-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/tramp-devel

Reply via email to