@@ -75,6 +75,7 @@ static int pack_objects(int fd, struct ref *refs, struct oid_array *advertised,
75
75
int i ;
76
76
int rc ;
77
77
78
+ trace2_region_enter ("send_pack" , "pack_objects" , the_repository );
78
79
strvec_push (& po .args , "pack-objects" );
79
80
strvec_push (& po .args , "--all-progress-implied" );
80
81
strvec_push (& po .args , "--revs" );
@@ -146,8 +147,10 @@ static int pack_objects(int fd, struct ref *refs, struct oid_array *advertised,
146
147
*/
147
148
if (rc > 128 && rc != 141 )
148
149
error ("pack-objects died of signal %d" , rc - 128 );
150
+ trace2_region_leave ("send_pack" , "pack_objects" , the_repository );
149
151
return -1 ;
150
152
}
153
+ trace2_region_leave ("send_pack" , "pack_objects" , the_repository );
151
154
return 0 ;
152
155
}
153
156
@@ -170,6 +173,7 @@ static int receive_status(struct packet_reader *reader, struct ref *refs)
170
173
int new_report = 0 ;
171
174
int once = 0 ;
172
175
176
+ trace2_region_enter ("send_pack" , "receive_status" , the_repository );
173
177
hint = NULL ;
174
178
ret = receive_unpack_status (reader );
175
179
while (1 ) {
@@ -268,6 +272,7 @@ static int receive_status(struct packet_reader *reader, struct ref *refs)
268
272
new_report = 1 ;
269
273
}
270
274
}
275
+ trace2_region_leave ("send_pack" , "receive_status" , the_repository );
271
276
return ret ;
272
277
}
273
278
@@ -512,8 +517,11 @@ int send_pack(struct send_pack_args *args,
512
517
}
513
518
514
519
git_config_get_bool ("push.negotiate" , & push_negotiate );
515
- if (push_negotiate )
520
+ if (push_negotiate ) {
521
+ trace2_region_enter ("send_pack" , "push_negotiate" , the_repository );
516
522
get_commons_through_negotiation (args -> url , remote_refs , & commons );
523
+ trace2_region_leave ("send_pack" , "push_negotiate" , the_repository );
524
+ }
517
525
518
526
if (!git_config_get_bool ("push.usebitmaps" , & use_bitmaps ))
519
527
args -> disable_bitmaps = !use_bitmaps ;
@@ -641,10 +649,11 @@ int send_pack(struct send_pack_args *args,
641
649
/*
642
650
* Finally, tell the other end!
643
651
*/
644
- if (!args -> dry_run && push_cert_nonce )
652
+ if (!args -> dry_run && push_cert_nonce ) {
645
653
cmds_sent = generate_push_cert (& req_buf , remote_refs , args ,
646
654
cap_buf .buf , push_cert_nonce );
647
- else if (!args -> dry_run )
655
+ trace2_printf ("Generated push certificate" );
656
+ } else if (!args -> dry_run ) {
648
657
for (ref = remote_refs ; ref ; ref = ref -> next ) {
649
658
char * old_hex , * new_hex ;
650
659
@@ -664,6 +673,7 @@ int send_pack(struct send_pack_args *args,
664
673
old_hex , new_hex , ref -> name );
665
674
}
666
675
}
676
+ }
667
677
668
678
if (use_push_options ) {
669
679
struct string_list_item * item ;
0 commit comments