| 2724 | } |
| 2725 | |
| 2726 | struct http_pack_request *new_http_pack_request( |
| 2727 | const unsigned char *packed_git_hash, const char *base_url) { |
| 2728 | |
| 2729 | struct strbuf buf = STRBUF_INIT; |
| 2730 | |
| 2731 | end_url_with_slash(&buf, base_url); |
| 2732 | strbuf_addf(&buf, "objects/pack/pack-%s.pack", |
| 2733 | hash_to_hex(packed_git_hash)); |
| 2734 | return new_direct_http_pack_request(packed_git_hash, |
| 2735 | strbuf_detach(&buf, NULL)); |
| 2736 | } |
| 2737 | |
| 2738 | struct http_pack_request *new_direct_http_pack_request( |
| 2739 | const unsigned char *packed_git_hash, char *url) |
no test coverage detected