summaryrefslogtreecommitdiff
path: root/t/t7701-repack-unpack-unreachable.sh
diff options
context:
space:
mode:
authorLibravatar Patrick Steinhardt <ps@pks.im>2021-01-12 13:27:43 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2021-01-12 12:06:15 -0800
commitc45889f10453864130ccbfa45815e2f4e384ab5e (patch)
tree8ca34d83ff300d9710499d778a7a24f371bef195 /t/t7701-repack-unpack-unreachable.sh
parentfetch: use strbuf to format FETCH_HEAD updates (diff)
downloadtgif-c45889f10453864130ccbfa45815e2f4e384ab5e.tar.xz
fetch: refactor `s_update_ref` to use common exit path
The cleanup code in `s_update_ref()` is currently duplicated for both succesful and erroneous exit paths. This commit refactors the function to have a shared exit path for both cases to remove the duplication. Suggested-by: Christian Couder <christian.couder@gmail.com> Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t7701-repack-unpack-unreachable.sh')
0 files changed, 0 insertions, 0 deletions