@@ -925,7 +925,7 @@ static int run_receive_hook(struct command *commands,
925925 int skip_broken ,
926926 const struct string_list * push_options )
927927{
928- struct run_hooks_opt opt = RUN_HOOKS_OPT_INIT ;
928+ struct run_hooks_opt opt = RUN_HOOKS_OPT_INIT_PARALLEL ;
929929 struct command * iter = commands ;
930930 struct receive_hook_feed_state feed_state ;
931931 struct async sideband_async ;
@@ -976,7 +976,7 @@ static int run_receive_hook(struct command *commands,
976976
977977static int run_update_hook (struct command * cmd )
978978{
979- struct run_hooks_opt opt = RUN_HOOKS_OPT_INIT ;
979+ struct run_hooks_opt opt = RUN_HOOKS_OPT_INIT_PARALLEL ;
980980 struct async sideband_async ;
981981 int sideband_async_started = 0 ;
982982 int saved_stderr = -1 ;
@@ -1455,7 +1455,8 @@ static const char *push_to_checkout(unsigned char *hash,
14551455 struct strvec * env ,
14561456 const char * work_tree )
14571457{
1458- struct run_hooks_opt opt = RUN_HOOKS_OPT_INIT ;
1458+ struct run_hooks_opt opt = RUN_HOOKS_OPT_INIT_SERIAL ;
1459+
14591460 opt .invoked_hook = invoked_hook ;
14601461
14611462 strvec_pushf (env , "GIT_WORK_TREE=%s" , absolute_path (work_tree ));
@@ -1670,7 +1671,7 @@ static const char *update(struct command *cmd, struct shallow_info *si)
16701671
16711672static void run_update_post_hook (struct command * commands )
16721673{
1673- struct run_hooks_opt opt = RUN_HOOKS_OPT_INIT ;
1674+ struct run_hooks_opt opt = RUN_HOOKS_OPT_INIT_PARALLEL ;
16741675 struct async sideband_async ;
16751676 struct command * cmd ;
16761677 int sideband_async_started = 0 ;
0 commit comments