| 1969 | } |
| 1970 | |
| 1971 | const char *branch_get_push(struct branch *branch, struct strbuf *err) |
| 1972 | { |
| 1973 | read_config(the_repository, 0); |
| 1974 | die_on_missing_branch(the_repository, branch); |
| 1975 | |
| 1976 | if (!branch) |
| 1977 | return error_buf(err, _("HEAD does not point to a branch")); |
| 1978 | |
| 1979 | if (!branch->push_tracking_ref) |
| 1980 | branch->push_tracking_ref = branch_get_push_1( |
| 1981 | the_repository, branch, err); |
| 1982 | return branch->push_tracking_ref; |
| 1983 | } |
| 1984 | |
| 1985 | static int ignore_symref_update(const char *refname, struct strbuf *scratch) |
| 1986 | { |
no test coverage detected