@@ -926,7 +926,7 @@ static int run_receive_hook(struct command *commands,
926926 int skip_broken ,
927927 const struct string_list * push_options )
928928{
929- struct run_hooks_opt opt = RUN_HOOKS_OPT_INIT ;
929+ struct run_hooks_opt opt = RUN_HOOKS_OPT_INIT_PARALLEL ;
930930 struct command * iter = commands ;
931931 struct receive_hook_feed_state feed_init_state = { 0 };
932932 struct async sideband_async ;
@@ -974,7 +974,7 @@ static int run_receive_hook(struct command *commands,
974974
975975static int run_update_hook (struct command * cmd )
976976{
977- struct run_hooks_opt opt = RUN_HOOKS_OPT_INIT ;
977+ struct run_hooks_opt opt = RUN_HOOKS_OPT_INIT_PARALLEL ;
978978 struct async sideband_async ;
979979 int sideband_async_started = 0 ;
980980 int saved_stderr = -1 ;
@@ -1453,7 +1453,8 @@ static const char *push_to_checkout(unsigned char *hash,
14531453 struct strvec * env ,
14541454 const char * work_tree )
14551455{
1456- struct run_hooks_opt opt = RUN_HOOKS_OPT_INIT ;
1456+ struct run_hooks_opt opt = RUN_HOOKS_OPT_INIT_SERIAL ;
1457+
14571458 opt .invoked_hook = invoked_hook ;
14581459
14591460 strvec_pushf (env , "GIT_WORK_TREE=%s" , absolute_path (work_tree ));
@@ -1668,7 +1669,7 @@ static const char *update(struct command *cmd, struct shallow_info *si)
16681669
16691670static void run_update_post_hook (struct command * commands )
16701671{
1671- struct run_hooks_opt opt = RUN_HOOKS_OPT_INIT ;
1672+ struct run_hooks_opt opt = RUN_HOOKS_OPT_INIT_PARALLEL ;
16721673 struct async sideband_async ;
16731674 struct command * cmd ;
16741675 int sideband_async_started = 0 ;
0 commit comments