| 689 | } |
| 690 | |
| 691 | static const char * |
| 692 | remotes_pushremote_for_branch(struct remote_state *remote_state, |
| 693 | struct branch *branch, int *explicit) |
| 694 | { |
| 695 | if (branch && branch->pushremote_name) { |
| 696 | if (explicit) |
| 697 | *explicit = 1; |
| 698 | return branch->pushremote_name; |
| 699 | } |
| 700 | if (remote_state->pushremote_name) { |
| 701 | if (explicit) |
| 702 | *explicit = 1; |
| 703 | return remote_state->pushremote_name; |
| 704 | } |
| 705 | return remotes_remote_for_branch(remote_state, branch, explicit); |
| 706 | } |
| 707 | |
| 708 | const char *pushremote_for_branch(struct branch *branch, int *explicit) |
| 709 | { |
no test coverage detected