magit-interactive-rebase: use locate-file and exec-path to find emacsclient, instead of hard-coding to exec-directory

This commit is contained in:
Mark Hepburn 2010-05-21 17:13:21 +10:00 committed by Phil Jackson
parent 017828d250
commit 98d87b1288

View file

@ -3894,7 +3894,7 @@ With a non numeric prefix ARG, show all entries"
(commit (and (member 'commit (magit-section-context-type section))
(magit-section-info section)))
(old-editor (getenv "GIT_EDITOR")))
(setenv "GIT_EDITOR" (expand-file-name "emacsclient" exec-directory))
(setenv "GIT_EDITOR" (locate-file "emacsclient" exec-path))
(unwind-protect
(magit-run-git-async "rebase" "-i"
(or (and commit (concat commit "^"))