MCPcopy Create free account
hub / github.com/git/git / push_dav

Function push_dav

remote-curl.c:1343–1362  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1341}
1342
1343static 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
1364static int push_git(struct discovery *heads, int nr_spec, const char **specs)
1365{

Callers 1

pushFunction · 0.85

Calls 3

strvec_pushFunction · 0.85
run_commandFunction · 0.85
dieFunction · 0.70

Tested by

no test coverage detected