summaryrefslogtreecommitdiff
path: root/builtin/receive-pack.c
diff options
context:
space:
mode:
authorLibravatar Glen Choo <chooglen@google.com>2022-01-18 16:00:54 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2022-01-18 16:22:53 -0800
commitbec587d4c11e851c1e7b5ed7890d627c8346d1cb (patch)
treec64617402e4eda21771b4c10b0ee4765732866b4 /builtin/receive-pack.c
parentThe third batch (diff)
downloadtgif-bec587d4c11e851c1e7b5ed7890d627c8346d1cb.tar.xz
fetch: use goto cleanup in cmd_fetch()
Replace an early return with 'goto cleanup' in cmd_fetch() so that the string_list is always cleared (the string_list_clear() call is purely cleanup; the string_list is not reused). This makes cleanup consistent so that a subsequent commit can use 'goto cleanup' to bail out early. Signed-off-by: Glen Choo <chooglen@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/receive-pack.c')
0 files changed, 0 insertions, 0 deletions