Merge branch 'ld/p4-editor-multi-words' into next
commita368a479478a93fdbe3af58b3b7b5f24a74d109f
authorJunio C Hamano <gitster@pobox.com>
Thu, 28 May 2015 20:18:11 +0000 (28 13:18 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 28 May 2015 20:18:11 +0000 (28 13:18 -0700)
tree595b0d8175e781b54d3d76b70e45882887b9047c
parente51b0dd6724c19f420963b7bfc580ef32670b280
parentf3b5b07c3c7a8494d78e975d689b6c4479e6b0f3
Merge branch 'ld/p4-editor-multi-words' into next

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