Skip to content

Commit c42c664

Browse files
committed
Merge branch 'jt/http-auth-proto-v2-fix'
Unify RPC code for smart http in protocol v0/v1 and v2, which fixes a bug in the latter (lack of authentication retry) and generally improves the code base. * jt/http-auth-proto-v2-fix: remote-curl: use post_rpc() for protocol v2 also remote-curl: refactor reading into rpc_state's buf remote-curl: reduce scope of rpc_state.result remote-curl: reduce scope of rpc_state.stdin_preamble remote-curl: reduce scope of rpc_state.argv
2 parents 12e5bdd + a97d007 commit c42c664

File tree

4 files changed

+213
-207
lines changed

4 files changed

+213
-207
lines changed

pkt-line.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ void packet_buf_delim(struct strbuf *buf)
117117
strbuf_add(buf, "0001", 4);
118118
}
119119

120-
static void set_packet_header(char *buf, const int size)
120+
void set_packet_header(char *buf, const int size)
121121
{
122122
static char hexchar[] = "0123456789abcdef";
123123

pkt-line.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ void packet_delim(int fd);
2525
void packet_write_fmt(int fd, const char *fmt, ...) __attribute__((format (printf, 2, 3)));
2626
void packet_buf_flush(struct strbuf *buf);
2727
void packet_buf_delim(struct strbuf *buf);
28+
void set_packet_header(char *buf, int size);
2829
void packet_write(int fd_out, const char *buf, size_t size);
2930
void packet_buf_write(struct strbuf *buf, const char *fmt, ...) __attribute__((format (printf, 2, 3)));
3031
void packet_buf_write_len(struct strbuf *buf, const char *data, size_t len);

0 commit comments

Comments
 (0)