| 651 | |
| 652 | #ifndef WITH_BREAKING_CHANGES |
| 653 | static int valid_remote_nick(const char *name) |
| 654 | { |
| 655 | if (!name[0] || is_dot_or_dotdot(name)) |
| 656 | return 0; |
| 657 | |
| 658 | /* remote nicknames cannot contain slashes */ |
| 659 | while (*name) |
| 660 | if (is_dir_sep(*name++)) |
| 661 | return 0; |
| 662 | return 1; |
| 663 | } |
| 664 | #endif /* WITH_BREAKING_CHANGES */ |
| 665 | |
| 666 | static const char *remotes_remote_for_branch(struct remote_state *remote_state, |
no test coverage detected