Merge branches 'sp/maint-fetch-pack-stop-early' and 'sp/maint-upload-pack-stop-early'

* sp/maint-fetch-pack-stop-early:
  enable "no-done" extension only when fetching over smart-http

* sp/maint-upload-pack-stop-early:
  enable "no-done" extension only when serving over smart-http
This commit is contained in:
Junio C Hamano
2011-03-29 14:09:02 -07:00
2 changed files with 6 additions and 4 deletions

View File

@ -735,7 +735,8 @@ static struct ref *do_fetch_pack(int fd[2],
if (server_supports("no-done")) {
if (args.verbose)
fprintf(stderr, "Server supports no-done\n");
no_done = 1;
if (args.stateless_rpc)
no_done = 1;
}
}
else if (server_supports("multi_ack")) {