git emacsclient probleme

780
bneil

Ich setze meine Editorvariable so:

git config --global core.editor "`which emacsclient` -t -s" 

und bekomme diese Ausgabe immer dann, wenn ich die Nachricht während eines Commits bearbeiten möchte

emacsclient: aliased to /Applications/Emacs.app/Contents/MacOS/bin/emacsclient -t -s :  emacsclient:: command not found error: There was a problem with the editor 'emacsclient: aliased to /Applications/Emacs.app/Contents/MacOS/bin/emacsclient -t -s '. Please supply the message using either -m or -F option. 
0

2 Antworten auf die Frage

2
Mustafa Simav

Did you checked the output ofwhich emacsclient command? I bet it is

emacsclient: aliased to /Applications/Emacs.app/Contents/MacOS/bin/emacsclient 

Anyway, your global git config is located ~/.gitconfig file, so you can check and edit it.

0
bneil

Setting the full path "/Applications/Emacs.app/Contents/MacOS/bin/emacsclient -t -s" and not the alias to be the editor worked for me.