diff options
author | Matheus Tavares <matheus.bernardino@usp.br> | 2021-02-16 11:06:51 -0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-02-16 11:27:17 -0800 |
commit | 9334ea8e92d4011f07a35a98adf6207e175f852c (patch) | |
tree | 55a5663d8388fd35d228f42db3ea5d37458c0ad1 /ewah | |
parent | Git 2.30.1 (diff) | |
download | tgif-9334ea8e92d4011f07a35a98adf6207e175f852c.tar.xz |
write_entry(): fix misuses of `path` in error messages
The variables `path` and `ce->name`, at write_entry(), usually have the
same contents, but that's not the case when using a checkout prefix or
writing to a tempfile. (In fact, `path` will be either empty or dirty
when writing to a tempfile.) Therefore, these variables cannot be used
interchangeably. In this sense, fix wrong uses of `path` in error
messages where it should really be `ce->name`, and add some regression
tests. (Note: there doesn't seem to be any misuse in the other way
around.)
Signed-off-by: Matheus Tavares <matheus.bernardino@usp.br>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'ewah')
0 files changed, 0 insertions, 0 deletions