Skip to content

Commit 1d1243f

Browse files
jonathantanmygitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 0b9333f commit 1d1243f

File tree

1 file changed

+66
-50
lines changed

1 file changed

+66
-50
lines changed

0 commit comments

Comments
 (0)