8000 Add OpenSSH support by ethomson · Pull Request #6617 · libgit2/libgit2 · GitHub
[go: up one dir, main page]

Skip to content

Add OpenSSH support #6617

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 21 commits into from
Aug 31, 2023
Merged
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
smart: unique error messages
Instead of "early EOF", provide information on _when_ we're seeing the
EOF for debugging.
  • Loading branch information
ethomson committed Aug 30, 2023
commit 0e6261551516b28680e0632beee081552a0e2fc2
6 changes: 3 additions & 3 deletions src/libgit2/transports/smart_protocol.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ int git_smart__store_refs(transport_smart *t, int flushes)
return recvd;

if (recvd == 0) {
git_error_set(GIT_ERROR_NET, "early EOF");
git_error_set(GIT_ERROR_NET, "early EOF receiving refs");
return GIT_EEOF;
}

Expand Down Expand Up @@ -285,7 +285,7 @@ static int recv_pkt(
if ((ret = git_smart__recv(t)) < 0) {
return ret;
} else if (ret == 0) {
git_error_set(GIT_ERROR_NET, "early EOF");
git_error_set(GIT_ERROR_NET, "early EOF receiving packet");
return GIT_EEOF;
}
} while (error);
Expand Down Expand Up @@ -940,7 +940,7 @@ static int parse_report(transport_smart *transport, git_push *push)
}

if (recvd == 0) {
git_error_set(GIT_ERROR_NET, "early EOF");
git_error_set(GIT_ERROR_NET, "early EOF receiving report");
error = GIT_EEOF;
goto done;
}
Expand Down
0