Commit Diff
- Commit:
8d98a775225f31c6c2c71c5d40f1d323a6f552bd
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
- Message:
- fix gotd sending too large pack files in some cases Make gotsh pass all have-lines sent by clients onwards to gotd, reducing size of pack files generated by the repo_read process. Problem reported by naddy@ ok jamsek
- Actions:
- Patch | Tree
--- lib/serve.c +++ lib/serve.c @@ -964,8 +964,6 @@ serve_read(int infd, int outfd, int gotd_sock, const c if (err) goto done; seen_have = 1; - if (have_ack) - curstate = STATE_EXPECT_DONE; } } else if (n == 5 && strncmp(buf, "done\n", 5) == 0) { if (curstate != STATE_EXPECT_HAVE &&