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

Function tracking_for_push_dest

remote.c:1890–1902  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1888}
1889
1890static char *tracking_for_push_dest(struct remote *remote,
1891 const char *refname,
1892 struct strbuf *err)
1893{
1894 char *ret;
1895
1896 ret = apply_refspecs(&remote->fetch, refname);
1897 if (!ret)
1898 return error_buf(err,
1899 _("push destination '%s' on remote '%s' has no local tracking branch"),
1900 refname, remote->name);
1901 return ret;
1902}
1903
1904static char *branch_get_push_1(struct repository *repo,
1905 struct branch *branch, struct strbuf *err)

Callers 1

branch_get_push_1Function · 0.85

Calls 2

apply_refspecsFunction · 0.85
error_bufFunction · 0.85

Tested by

no test coverage detected