summaryrefslogtreecommitdiff
path: root/contrib/persistent-https
diff options
context:
space:
mode:
authorCalvin Wan <calvinwan@google.com>2026-07-24 12:54:19 +0200
committerJunio C Hamano <gitster@pobox.com>2026-07-24 08:46:59 -0700
commit24f082e6f45e39dc36f55a3344696d707740f56e (patch)
tree2af293aefd580bdfe19e194d4f1be6f2f2126015 /contrib/persistent-https
parenteb1fbc64b705deaf600bbba777616209280f43a5 (diff)
fetch-pack: move fetch initialization
There are some variables initialized at the start of the do_fetch_pack_v2() state machine. Currently, they are initialized in FETCH_CHECK_LOCAL, which is the initial state set at the beginning of the function. However, a subsequent patch will allow for another initial state, while still requiring these initialized variables. Move the initialization to be before the state machine, so that they are set regardless of the initial state. Note that there is no change in behavior, because we're moving code from the beginning of the first state to just before the execution of the state machine. Helped-by: Jonathan Tan <jonathantanmy@google.com> Helped-by: Christian Couder <chriscool@tuxfamily.org> Signed-off-by: Calvin Wan <calvinwan@google.com> Signed-off-by: Eric Ju <eric.peijian@gmail.com> Signed-off-by: Pablo Sabater <pabloosabaterr@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/persistent-https')
0 files changed, 0 insertions, 0 deletions