diff options
| author | Patrick Steinhardt <ps@pks.im> | 2021-01-12 13:27:43 +0100 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2021-01-12 12:06:15 -0800 |
| commit | c45889f10453864130ccbfa45815e2f4e384ab5e (patch) | |
| tree | 8ca34d83ff300d9710499d778a7a24f371bef195 /commit.c | |
| parent | fetch: use strbuf to format FETCH_HEAD updates (diff) | |
| download | git-c45889f10453864130ccbfa45815e2f4e384ab5e.tar.gz git-c45889f10453864130ccbfa45815e2f4e384ab5e.zip | |
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 'commit.c')
0 files changed, 0 insertions, 0 deletions
