I installed magit. I added the following lines to my
(require 'tramp) (push "/path/to/git/directory/" tramp-remote-path)
And when I am in tramp I run
M-x magit-version here is the output:
Magit 20170808.1712, Git (unknown), Emacs 25.2.1, darwin
So despite being pointed at the right git it definitely isn't finding it. I checked
magit-git-executable and it is "git" and the correct path is at the start of
Time for option #2. I changed my
.emacs, removing the previous two lines and adding this:
(setq magit-git-executable "/path/to/git/directory/git")
Now I can get magit to show the correct git version, I can open
magit-status. But now I get
"Error in post-command-hook (magit-auto-revert-mode-check-buffers): (file-error "Searching for program" "No such file or directory" "/path/to/git/directory/git")
no matter what I do. I cannot switch buffers, I cannot close buffers, I cannot exit. I am forced to do a force quit from the OS.
- Why doesn't
tramp-remote-pathwork at all?
- Why does setting
magit-git-executablescrew things up so bad I can't even exit Emacs normally?
- Why is it so hard to get Emacs, git, tramp and magit to play nice together?
- What am I doing wrong?