| 1417 | } |
| 1418 | |
| 1419 | static int push(int nr_spec, const char **specs) |
| 1420 | { |
| 1421 | struct discovery *heads = discover_refs("git-receive-pack", 1); |
| 1422 | int ret; |
| 1423 | |
| 1424 | if (heads->proto_git) |
| 1425 | ret = push_git(heads, nr_spec, specs); |
| 1426 | else |
| 1427 | ret = push_dav(nr_spec, specs); |
| 1428 | free_discovery(heads); |
| 1429 | return ret; |
| 1430 | } |
| 1431 | |
| 1432 | static void parse_push(struct strbuf *buf) |
| 1433 | { |
no test coverage detected