From: Junio C Hamano Date: Thu, 2 Feb 2017 21:36:56 +0000 (-0800) Subject: Merge branch 'rs/receive-pack-cleanup' X-Git-Tag: v2.12.0-rc0~15 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/140d41ae87274303f972702ce394544407d5c21e?ds=inline;hp=-c Merge branch 'rs/receive-pack-cleanup' Code clean-up. * rs/receive-pack-cleanup: receive-pack: call string_list_clear() unconditionally --- 140d41ae87274303f972702ce394544407d5c21e diff --combined builtin/receive-pack.c index 6b97cbdbe9,a03da29e2c..1dbb8a0692 --- a/builtin/receive-pack.c +++ b/builtin/receive-pack.c @@@ -795,8 -795,8 +795,8 @@@ static char *refuse_unconfigured_deny_m "with what you pushed, and will require 'git reset --hard' to match\n" "the work tree to HEAD.\n" "\n" - "You can set 'receive.denyCurrentBranch' configuration variable to\n" - "'ignore' or 'warn' in the remote repository to allow pushing into\n" + "You can set the 'receive.denyCurrentBranch' configuration variable\n" + "to 'ignore' or 'warn' in the remote repository to allow pushing into\n" "its current branch; however, this is not recommended unless you\n" "arranged to update its work tree to match what you pushed in some\n" "other way.\n" @@@ -1942,8 -1942,7 +1942,7 @@@ int cmd_receive_pack(int argc, const ch 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,