diff options
author | Jonathan Tan <jonathantanmy@google.com> | 2018-10-18 23:43:28 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-10-19 06:04:53 +0300 |
commit | 1d1243fe6328db9b2b045afee9357ab7c6c515f1 (patch) | |
tree | 11e45495d8436d6e1da17922824051c6c4cb4488 /tree.c | |
parent | 0b9333ff3ee172669dc3da51afa5fc0aa8e1b114 (diff) |
upload-pack: make want_obj not global
Because upload_pack_v2() can be invoked multiple times in the same
process, the static variable want_obj may not be empty when it is
invoked. To make further analysis of this situation easier, make the
variable local; analysis will be done in a subsequent patch.
The new local variable in upload_pack_v2() is static to preserve
existing behavior; this is not necessary in upload_pack() because
upload_pack() is only invoked once per process.
Signed-off-by: Jonathan Tan <jonathantanmy@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'tree.c')
0 files changed, 0 insertions, 0 deletions