diff options
author | Junio C Hamano <gitster@pobox.com> | 2017-02-02 13:36:56 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-02-02 13:36:57 -0800 |
commit | 140d41ae87274303f972702ce394544407d5c21e (patch) | |
tree | 630feb77aef4250096b6460a909665fe0d2720f6 /builtin | |
parent | Merge branch 'mm/reset-facl-before-umask-test' (diff) | |
parent | receive-pack: call string_list_clear() unconditionally (diff) | |
download | tgif-140d41ae87274303f972702ce394544407d5c21e.tar.xz |
Merge branch 'rs/receive-pack-cleanup'
Code clean-up.
* rs/receive-pack-cleanup:
receive-pack: call string_list_clear() unconditionally
Diffstat (limited to 'builtin')
-rw-r--r-- | builtin/receive-pack.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/builtin/receive-pack.c b/builtin/receive-pack.c index 6b97cbdbe9..1dbb8a0692 100644 --- a/builtin/receive-pack.c +++ b/builtin/receive-pack.c @@ -1942,8 +1942,7 @@ int cmd_receive_pack(int argc, const char **argv, const char *prefix) run_receive_hook(commands, "post-receive", 1, &push_options); run_update_post_hook(commands); - if (push_options.nr) - string_list_clear(&push_options, 0); + string_list_clear(&push_options, 0); if (auto_gc) { const char *argv_gc_auto[] = { "gc", "--auto", "--quiet", NULL, |