MCPcopy Create free account
hub / github.com/git/git / die_initial_contact

Function die_initial_contact

connect.c:61–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61static 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' */
78int server_supports_v2(const char *c)

Callers 2

discover_versionFunction · 0.85
get_remote_headsFunction · 0.85

Calls 1

dieFunction · 0.70

Tested by

no test coverage detected