diff options
author | Junio C Hamano <gitster@pobox.com> | 2015-01-30 15:15:59 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-02-10 13:41:16 -0800 |
commit | 3c37a2e339e695c7cc41048fe0921cbc8b48b0f0 (patch) | |
tree | e370f3cbb02d451a548f13a51db37da80a695e31 /t/t5515/fetch.br-unconfig_config-glob | |
parent | apply: reject input that touches outside the working area (diff) | |
download | tgif-3c37a2e339e695c7cc41048fe0921cbc8b48b0f0.tar.xz |
apply: do not read from the filesystem under --index
We currently read the preimage to apply a patch from the index only
when the --cached option is given. Do so also when the command is
running under the --index option. With --index, the index entry and
the working tree file for a path that is involved in a patch must be
identical, so this should not affect the result, but by reading from
the index, we will get the protection to avoid reading an unintended
path beyond a symbolic link automatically.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5515/fetch.br-unconfig_config-glob')
0 files changed, 0 insertions, 0 deletions