author | Junio C Hamano <gitster@pobox.com> | |
Mon, 8 Jun 2009 16:41:49 +0000 (09:41 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 10 Jun 2009 07:02:20 +0000 (00:02 -0700) | ||
commit | 61dbb3c4415169194d9351cc4b68dd88788a93c5 | |
tree | bad5939021f57fead20db7690b2b4a5bd41b5c76 | tree | snapshot |
parent | 203ee91fd273ae424deeeee5ddcc7947a4c76ccd | commit | diff |
Makefile: insert SANE_TOOL_PATH to PATH before /bin or /usr/bin
In an earlier patch, we introduced SANE_TOOL_PATH that is prepended to
user's PATH. This had an unintended consequence of overriding user's
private binary directory that typically comes earlier in the PATH to holds
even saner commands than whatever comes with the system.
For example, a user may have ~/bin that is early in the path and contains
a shell script "vi" that launches system's /bin/vi with specific options.
Prepending SANE_TOOL_PATH to the PATH that happens to have "vi" in it
defeats such customization.
This fixes the issue by inserting SANE_TOOL_PATH just before /bin or
/usr/bin appears on the PATH.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
In an earlier patch, we introduced SANE_TOOL_PATH that is prepended to
user's PATH. This had an unintended consequence of overriding user's
private binary directory that typically comes earlier in the PATH to holds
even saner commands than whatever comes with the system.
For example, a user may have ~/bin that is early in the path and contains
a shell script "vi" that launches system's /bin/vi with specific options.
Prepending SANE_TOOL_PATH to the PATH that happens to have "vi" in it
defeats such customization.
This fixes the issue by inserting SANE_TOOL_PATH just before /bin or
/usr/bin appears on the PATH.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile | diff | blob | history | |
git-sh-setup.sh | diff | blob | history |