| 1256 | } |
| 1257 | |
| 1258 | static int fetch(int nr_heads, struct ref **to_fetch) |
| 1259 | { |
| 1260 | struct discovery *d = discover_refs("git-upload-pack", 0); |
| 1261 | if (d->proto_git) |
| 1262 | return fetch_git(d, nr_heads, to_fetch); |
| 1263 | else |
| 1264 | return fetch_dumb(nr_heads, to_fetch); |
| 1265 | } |
| 1266 | |
| 1267 | static void parse_fetch(struct strbuf *buf) |
| 1268 | { |
no test coverage detected