Revision 1073094f30a8dd5ae49f2146f587085c4fe86410 authored by Anders Kaseorg on 30 October 2016, 02:10:02 UTC, committed by Junio C Hamano on 30 October 2016, 23:13:49 UTC
d323c6b641 ("i18n: git-sh-setup.sh: mark strings for translation",
2016-06-17) started to dot-source git-sh-i18n shell script library,
assuming that $PATH is already adjusted for our scripts, namely,
$GIT_EXEC_PATH is at the beginning of $PATH.

Old contrib scripts like contrib/convert-grafts-to-replace-refs.sh
and contrib/rerere-train.sh and third-party scripts like guilt may
however be using this as ". $(git --exec-path)/git-sh-setup",
without satisfying that assumption.  Be more explicit by specifying
its path prefixed with "$(git --exec-path)/". to be safe.

While we’re here, move the sourcing of git-sh-i18n below the shell
portability fixes.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent ac84098
History
File Mode Size
License.txt -rw-r--r-- 1.3 KB
Readme.txt -rw-r--r-- 6.3 KB
malloc.c.h -rw-r--r-- 191.9 KB
nedmalloc.c -rw-r--r-- 24.6 KB
nedmalloc.h -rw-r--r-- 6.6 KB

Readme.txt

back to top