@@ -1145,8 +1145,10 @@ int transport_push(struct repository *r,
11451145
11461146 refspec_ref_prefixes (rs , & ref_prefixes );
11471147
1148+ trace2_region_enter ("transport_push" , "get_refs_list" , r );
11481149 remote_refs = transport -> vtable -> get_refs_list (transport , 1 ,
11491150 & ref_prefixes );
1151+ trace2_region_leave ("transport_push" , "get_refs_list" , r );
11501152
11511153 argv_array_clear (& ref_prefixes );
11521154
@@ -1182,6 +1184,7 @@ int transport_push(struct repository *r,
11821184 struct ref * ref = remote_refs ;
11831185 struct oid_array commits = OID_ARRAY_INIT ;
11841186
1187+ trace2_region_enter ("transport_push" , "push_submodules" , r );
11851188 for (; ref ; ref = ref -> next )
11861189 if (!is_null_oid (& ref -> new_oid ))
11871190 oid_array_append (& commits ,
@@ -1194,9 +1197,11 @@ int transport_push(struct repository *r,
11941197 transport -> push_options ,
11951198 pretend )) {
11961199 oid_array_clear (& commits );
1200+ trace2_region_leave ("transport_push" , "push_submodules" , r );
11971201 die (_ ("failed to push all needed submodules" ));
11981202 }
11991203 oid_array_clear (& commits );
1204+ trace2_region_leave ("transport_push" , "push_submodules" , r );
12001205 }
12011206
12021207 if (((flags & TRANSPORT_RECURSE_SUBMODULES_CHECK ) ||
@@ -1207,6 +1212,7 @@ int transport_push(struct repository *r,
12071212 struct string_list needs_pushing = STRING_LIST_INIT_DUP ;
12081213 struct oid_array commits = OID_ARRAY_INIT ;
12091214
1215+ trace2_region_enter ("transport_push" , "check_submodules" , r );
12101216 for (; ref ; ref = ref -> next )
12111217 if (!is_null_oid (& ref -> new_oid ))
12121218 oid_array_append (& commits ,
@@ -1217,15 +1223,19 @@ int transport_push(struct repository *r,
12171223 transport -> remote -> name ,
12181224 & needs_pushing )) {
12191225 oid_array_clear (& commits );
1226+ trace2_region_leave ("transport_push" , "check_submodules" , r );
12201227 die_with_unpushed_submodules (& needs_pushing );
12211228 }
12221229 string_list_clear (& needs_pushing , 0 );
12231230 oid_array_clear (& commits );
1231+ trace2_region_leave ("transport_push" , "check_submodules" , r );
12241232 }
12251233
1226- if (!(flags & TRANSPORT_RECURSE_SUBMODULES_ONLY ))
1234+ if (!(flags & TRANSPORT_RECURSE_SUBMODULES_ONLY )) {
1235+ trace2_region_enter ("transport_push" , "push_refs" , r );
12271236 push_ret = transport -> vtable -> push_refs (transport , remote_refs , flags );
1228- else
1237+ trace2_region_leave ("transport_push" , "push_refs" , r );
1238+ } else
12291239 push_ret = 0 ;
12301240 err = push_had_errors (remote_refs );
12311241 ret = push_ret | err ;
0 commit comments