receive-pack: do not reuse old_sha1[] for other things
commite408d3cbedb0e754f01c7c5242b665bc2a12867b
authorJunio C Hamano <gitster@pobox.com>
Fri, 15 Aug 2014 21:26:17 +0000 (15 14:26 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 22 Aug 2014 22:35:59 +0000 (22 15:35 -0700)
tree2e9bb24d66d096356a792db18b12cf995bb6cff1
parenta6515a84dd9e14280ad6ca74519ad359d0e1af0c
receive-pack: do not reuse old_sha1[] for other things

This piece of code reads object names of shallow boundaries, not
old_sha1[], i.e. the current value the ref points at, which is to be
replaced by what is in new_sha1[].

Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/receive-pack.c