write_pack_file: use correct variable in diagnostic
commit0eea5a6e91d3da6932c13f16fdf4b4e5ed91b93c
authorSun He <sunheehnus@gmail.com>
Sun, 2 Mar 2014 07:30:11 +0000 (2 15:30 +0800)
committerJunio C Hamano <gitster@pobox.com>
Mon, 3 Mar 2014 18:43:40 +0000 (3 10:43 -0800)
treef596b2d23c8599b020e5e85ab702a2569e99415b
parent2f93541d88fadd1ff5307d81c2c8921ee3eea058
write_pack_file: use correct variable in diagnostic

'pack_tmp_name' is the subject of the utime() check, so report it in the
warning, not the uninitialized 'tmpname'

Signed-off-by: Sun He <sunheehnus@gmail.com>
Reviewed-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/pack-objects.c