Commit c75a890b by Kirill A. Shutemov

transport_git: add missed error handling

Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
parent d7f0abab
......@@ -151,6 +151,8 @@ static int do_connect(transport_git *t, const char *url)
url += STRLEN(prefix);
error = extract_host_and_port(&host, &port, url);
if (error < GIT_SUCCESS)
return error;
s = gitno_connect(host, port);
connected = 1;
error = send_request(s, NULL, url);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment