Git uses /usr/bin/editor as the fallback editor, in accordance with
Debian Policy:

https://www.debian.org/doc/debian-policy/ch-customized-
programs.html#s11.4

“Thus, every program that launches an editor or pager must use the
EDITOR or PAGER environment variable to determine the editor or pager
the user wishes to use. If these variables are not set, the programs
/usr/bin/editor and /usr/bin/pager should be used, respectively.

If it is very hard to adapt a program to make use of the EDITOR or PAGER
variables, that program may be configured to use /usr/bin/sensible-
editor and /usr/bin/sensible-pager as the editor or pager program
respectively.”

Since Git does make use of the EDITOR variable, this policy requires Git
to fall back to /usr/bin/editor, not /usr/bin/sensible-editor.

** Changed in: git (Ubuntu)
       Status: Confirmed => Invalid

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/569979

Title:
  git does not use sensible-editor when EDITOR not defined

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/git/+bug/569979/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to