| 1888 | } |
| 1889 | |
| 1890 | static 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 | |
| 1904 | static char *branch_get_push_1(struct repository *repo, |
| 1905 | struct branch *branch, struct strbuf *err) |
no test coverage detected