Merge branch 'ld/p4-editor-multi-words'
commit9fb0a798a74509ddc17f7ba7390abce5981c20de
authorJunio C Hamano <gitster@pobox.com>
Fri, 5 Jun 2015 19:17:38 +0000 (5 12:17 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 5 Jun 2015 19:17:38 +0000 (5 12:17 -0700)
treeb6f7597e7f47939c0189f593bbd27018655a094c
parent5455ee0573a22bb793a7083d593ae1ace909cd4c
parentf3b5b07c3c7a8494d78e975d689b6c4479e6b0f3
Merge branch 'ld/p4-editor-multi-words'

Unlike "$EDITOR" and "$GIT_EDITOR" that can hold the path to the
command and initial options (e.g. "/path/to/emacs -nw"), 'git p4'
did not let the shell interpolate the contents of the environment
variable that name the editor "$P4EDITOR" (and "$EDITOR", too).
Make it in line with the rest of Git, as well as with Perforce.

* ld/p4-editor-multi-words:
  git-p4: tests: use test-chmtime in place of touch
  git-p4: fix handling of multi-word P4EDITOR
  git-p4: add failing test for P4EDITOR handling
git-p4.py