Skip to content

Commit 29508e1

Browse files
Nick HengeveldJunio C Hamano
authored andcommitted
Isolate shared HTTP request functionality
Move shared HTTP request functionality out of http-fetch and http-push, and replace the two fwrite_buffer/fwrite_buffer_dynamic functions with one fwrite_buffer function that does dynamic buffering. Use slot callbacks to process responses to fetch object transfer requests and push transfer requests, and put all of http-push into an #ifdef check for curl multi support. Signed-off-by: Nick Hengeveld <nickh@reactrix.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
1 parent 80e21a9 commit 29508e1

File tree

5 files changed

+635
-976
lines changed

5 files changed

+635
-976
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,8 @@ $(SIMPLE_PROGRAMS) : git-%$X : %.o
387387
$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^) \
388388
$(LIB_FILE) $(SIMPLE_LIB)
389389

390-
git-http-fetch$X: fetch.o
390+
git-http-fetch$X: fetch.o http.o
391+
git-http-push$X: http.o
391392
git-local-fetch$X: fetch.o
392393
git-ssh-fetch$X: rsh.o fetch.o
393394
git-ssh-upload$X: rsh.o

0 commit comments

Comments
 (0)