Jeff King wrote: > --- a/pkt-line.c > +++ b/pkt-line.c > @@ -160,7 +160,8 @@ static int packet_read_internal(int fd, char *buffer, unsigned size, int gently) > } > len -= 4; > if (len >= size) > - die("protocol error: bad line length %d", len); > + die("protocol error: line too large: (expected %u, got %d)", > + size, len); Makes sense. I think this should say "expected < %u, got %d", since we don't actually expect most lines to be 1004 bytes in practice. With or without such a change, Reviewed-by: Jonathan Nieder <jrnieder@xxxxxxxxx> -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html