| 863 | } |
| 864 | |
| 865 | int for_each_remote(each_remote_fn fn, void *priv) |
| 866 | { |
| 867 | int i, result = 0; |
| 868 | read_config(the_repository, 0); |
| 869 | for (i = 0; i < the_repository->remote_state->remotes_nr && !result; |
| 870 | i++) { |
| 871 | struct remote *remote = |
| 872 | the_repository->remote_state->remotes[i]; |
| 873 | if (!remote) |
| 874 | continue; |
| 875 | result = fn(remote, priv); |
| 876 | } |
| 877 | return result; |
| 878 | } |
| 879 | |
| 880 | static void handle_duplicate(struct ref *ref1, struct ref *ref2) |
| 881 | { |
no test coverage detected