| 59 | } |
| 60 | |
| 61 | static NORETURN void die_initial_contact(int unexpected) |
| 62 | { |
| 63 | /* |
| 64 | * A hang-up after seeing some response from the other end |
| 65 | * means that it is unexpected, as we know the other end is |
| 66 | * willing to talk to us. A hang-up before seeing any |
| 67 | * response does not necessarily mean an ACL problem, though. |
| 68 | */ |
| 69 | if (unexpected) |
| 70 | die(_("the remote end hung up upon initial contact")); |
| 71 | else |
| 72 | die(_("Could not read from remote repository.\n\n" |
| 73 | "Please make sure you have the correct access rights\n" |
| 74 | "and the repository exists.")); |
| 75 | } |
| 76 | |
| 77 | /* Checks if the server supports the capability 'c' */ |
| 78 | int server_supports_v2(const char *c) |
no test coverage detected