| 1493 | } |
| 1494 | |
| 1495 | static void check_not_current_branch(struct ref *ref_map) |
| 1496 | { |
| 1497 | const char *path; |
| 1498 | for (; ref_map; ref_map = ref_map->next) |
| 1499 | if (ref_map->peer_ref && |
| 1500 | starts_with(ref_map->peer_ref->name, "refs/heads/") && |
| 1501 | (path = branch_checked_out(ref_map->peer_ref->name))) |
| 1502 | die(_("refusing to fetch into branch '%s' " |
| 1503 | "checked out at '%s'"), |
| 1504 | ref_map->peer_ref->name, path); |
| 1505 | } |
| 1506 | |
| 1507 | static int truncate_fetch_head(void) |
| 1508 | { |
no test coverage detected