summaryrefslogtreecommitdiff
path: root/commit-slab.h
diff options
context:
space:
mode:
authorLibravatar Matheus Tavares <matheus.bernardino@usp.br>2021-02-16 11:06:51 -0300
committerLibravatar Junio C Hamano <gitster@pobox.com>2021-02-16 11:27:17 -0800
commit9334ea8e92d4011f07a35a98adf6207e175f852c (patch)
tree55a5663d8388fd35d228f42db3ea5d37458c0ad1 /commit-slab.h
parentGit 2.30.1 (diff)
downloadtgif-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 'commit-slab.h')
0 files changed, 0 insertions, 0 deletions