| 1341 | } |
| 1342 | |
| 1343 | static int push_dav(int nr_spec, const char **specs) |
| 1344 | { |
| 1345 | struct child_process child = CHILD_PROCESS_INIT; |
| 1346 | size_t i; |
| 1347 | |
| 1348 | child.git_cmd = 1; |
| 1349 | strvec_push(&child.args, "http-push"); |
| 1350 | strvec_push(&child.args, "--helper-status"); |
| 1351 | if (options.dry_run) |
| 1352 | strvec_push(&child.args, "--dry-run"); |
| 1353 | if (options.verbosity > 1) |
| 1354 | strvec_push(&child.args, "--verbose"); |
| 1355 | strvec_push(&child.args, url.buf); |
| 1356 | for (i = 0; i < nr_spec; i++) |
| 1357 | strvec_push(&child.args, specs[i]); |
| 1358 | |
| 1359 | if (run_command(&child)) |
| 1360 | die(_("git-http-push failed")); |
| 1361 | return 0; |
| 1362 | } |
| 1363 | |
| 1364 | static int push_git(struct discovery *heads, int nr_spec, const char **specs) |
| 1365 | { |
no test coverage detected