@@ -1145,8 +1145,10 @@ int transport_push(struct repository *r,
1145
1145
1146
1146
refspec_ref_prefixes (rs , & ref_prefixes );
1147
1147
1148
+ trace2_region_enter ("transport_push" , "get_refs_list" , the_repository );
1148
1149
remote_refs = transport -> vtable -> get_refs_list (transport , 1 ,
1149
1150
& ref_prefixes );
1151
+ trace2_region_leave ("transport_push" , "get_refs_list" , the_repository );
1150
1152
1151
1153
argv_array_clear (& ref_prefixes );
1152
1154
@@ -1182,6 +1184,7 @@ int transport_push(struct repository *r,
1182
1184
struct ref * ref = remote_refs ;
1183
1185
struct oid_array commits = OID_ARRAY_INIT ;
1184
1186
1187
+ trace2_region_enter ("transport_push" , "push_submodules" , the_repository );
1185
1188
for (; ref ; ref = ref -> next )
1186
1189
if (!is_null_oid (& ref -> new_oid ))
1187
1190
oid_array_append (& commits ,
@@ -1194,9 +1197,11 @@ int transport_push(struct repository *r,
1194
1197
transport -> push_options ,
1195
1198
pretend )) {
1196
1199
oid_array_clear (& commits );
1200
+ trace2_region_leave ("transport_push" , "push_submodules" , the_repository );
1197
1201
die (_ ("failed to push all needed submodules" ));
1198
1202
}
1199
1203
oid_array_clear (& commits );
1204
+ trace2_region_leave ("transport_push" , "push_submodules" , the_repository );
1200
1205
}
1201
1206
1202
1207
if (((flags & TRANSPORT_RECURSE_SUBMODULES_CHECK ) ||
@@ -1207,6 +1212,7 @@ int transport_push(struct repository *r,
1207
1212
struct string_list needs_pushing = STRING_LIST_INIT_DUP ;
1208
1213
struct oid_array commits = OID_ARRAY_INIT ;
1209
1214
1215
+ trace2_region_enter ("transport_push" , "check_submodules" , the_repository );
1210
1216
for (; ref ; ref = ref -> next )
1211
1217
if (!is_null_oid (& ref -> new_oid ))
1212
1218
oid_array_append (& commits ,
@@ -1217,15 +1223,19 @@ int transport_push(struct repository *r,
1217
1223
transport -> remote -> name ,
1218
1224
& needs_pushing )) {
1219
1225
oid_array_clear (& commits );
1226
+ trace2_region_leave ("transport_push" , "check_submodules" , the_repository );
1220
1227
die_with_unpushed_submodules (& needs_pushing );
1221
1228
}
1222
1229
string_list_clear (& needs_pushing , 0 );
1223
1230
oid_array_clear (& commits );
1231
+ trace2_region_leave ("transport_push" , "check_submodules" , the_repository );
1224
1232
}
1225
1233
1226
- if (!(flags & TRANSPORT_RECURSE_SUBMODULES_ONLY ))
1234
+ if (!(flags & TRANSPORT_RECURSE_SUBMODULES_ONLY )) {
1235
+ trace2_region_enter ("transport_push" , "push_refs" , the_repository );
1227
1236
push_ret = transport -> vtable -> push_refs (transport , remote_refs , flags );
1228
- else
1237
+ trace2_region_leave ("transport_push" , "push_refs" , the_repository );
1238
+ } else
1229
1239
push_ret = 0 ;
1230
1240
err = push_had_errors (remote_refs );
1231
1241
ret = push_ret | err ;
0 commit comments