| 487 | } |
| 488 | |
| 489 | static int check_tracking_branch(struct remote *remote, void *cb_data) |
| 490 | { |
| 491 | char *tracking_branch = cb_data; |
| 492 | struct refspec_item query; |
| 493 | int res; |
| 494 | memset(&query, 0, sizeof(struct refspec_item)); |
| 495 | query.dst = tracking_branch; |
| 496 | res = !remote_find_tracking(remote, &query); |
| 497 | free(query.src); |
| 498 | return res; |
| 499 | } |
| 500 | |
| 501 | static int validate_remote_tracking_branch(char *ref) |
| 502 | { |
nothing calls this directly
no test coverage detected