Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
pkt-line: provide a generic reading function with options
[gitweb.git]
/
connect.c
diff --git
a/connect.c
b/connect.c
index 49e56ba35a645359b0d7c1f7bbc9e2108b3424d9..0aa202f885dce3791d6c92bfa434c084f424b145 100644
(file)
--- a/
connect.c
+++ b/
connect.c
@@
-76,7
+76,8
@@
struct ref **get_remote_heads(int in, struct ref **list,
char *name;
int len, name_len;
- len = packet_read(in, buffer, sizeof(buffer));
+ len = packet_read(in, buffer, sizeof(buffer),
+ PACKET_READ_GENTLE_ON_EOF);
if (len < 0)
die_initial_contact(got_at_least_one_head);