magit-interactive-rebase: use locate-file and exec-path to find emacsclient, instead of hard-coding to exec-directory
This commit is contained in:
parent
017828d250
commit
98d87b1288
1 changed files with 1 additions and 1 deletions
2
magit.el
2
magit.el
|
@ -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 "^"))
|
||||
|
|
Loading…
Reference in a new issue