Skip to content

Commit 140d41a

Browse files
committed
Merge branch 'rs/receive-pack-cleanup'
Code clean-up. * rs/receive-pack-cleanup: receive-pack: call string_list_clear() unconditionally
2 parents f1fac40 + 4432dd6 commit 140d41a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

builtin/receive-pack.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1942,8 +1942,7 @@ int cmd_receive_pack(int argc, const char **argv, const char *prefix)
19421942
run_receive_hook(commands, "post-receive", 1,
19431943
&push_options);
19441944
run_update_post_hook(commands);
1945-
if (push_options.nr)
1946-
string_list_clear(&push_options, 0);
1945+
string_list_clear(&push_options, 0);
19471946
if (auto_gc) {
19481947
const char *argv_gc_auto[] = {
19491948
"gc", "--auto", "--quiet", NULL,

0 commit comments

Comments
 (0)