tramp-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Tramp and magit


From: Michael Albinus
Subject: Re: Tramp and magit
Date: Wed, 15 Aug 2018 10:14:15 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

S Neaves <address@hidden> 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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]