diff options
author | Junio C Hamano <gitster@pobox.com> | 2012-08-08 12:08:17 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-08-08 14:36:33 -0700 |
commit | 785063e02bb249ef3a39db88575fe626b310d4a7 (patch) | |
tree | b23673aef74184f0413ee71044df6034ec08aab6 /entry.c | |
parent | Git 1.7.9.7 (diff) | |
download | tgif-785063e02bb249ef3a39db88575fe626b310d4a7.tar.xz |
sh-setup: protect from exported IFS
Many scripted Porcelains rely on being able to split words at the
default $IFS characters, i.e. SP, HT and LF. If the user exports a
non-default IFS to the environment, what they read from plumbing
commands such as ls-files that use HT to delimit fields may not be
split in the way we expect.
Protect outselves by resetting it, just like we do so against CDPATH
exported to the environment.
Noticed by Andrew Dranse <adranse@oanda.com>.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'entry.c')
0 files changed, 0 insertions, 0 deletions