Skip to content

Commit

Permalink
magit-emacs-Q-command: load absolute path
Browse files Browse the repository at this point in the history
This matches the absolute paths for library directories and avoids Emacs
bug #16406.
  • Loading branch information
fice-t authored and npostavs committed Dec 9, 2016
1 parent 49a7abc commit 83980c6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lisp/magit-utils.el
Expand Up @@ -484,7 +484,8 @@ ACTION is a member of option `magit-slow-confirm'."
(file-name-directory (locate-library lib)))
'("magit" "magit-popup" "with-editor"
"git-commit" "dash"))))
"-l" "magit")
;; Avoid Emacs bug#16406 by using full path.
"-l" ,(file-name-sans-extension (locate-library "magit")))
" ")))
(message "Uncustomized Magit command saved to kill-ring, %s"
"please run it in a terminal.")
Expand Down

0 comments on commit 83980c6

Please sign in to comment.