| 577 | } |
| 578 | |
| 579 | static struct ref *get_refs(int for_push) |
| 580 | { |
| 581 | struct discovery *heads; |
| 582 | |
| 583 | if (for_push) |
| 584 | heads = discover_refs("git-receive-pack", for_push); |
| 585 | else |
| 586 | heads = discover_refs("git-upload-pack", for_push); |
| 587 | |
| 588 | return heads->refs; |
| 589 | } |
| 590 | |
| 591 | static void output_refs(struct ref *refs) |
| 592 | { |
no test coverage detected