Code

Merge branches 'sp/maint-fetch-pack-stop-early' and 'sp/maint-upload-pack-stop-early'
authorJunio C Hamano <gitster@pobox.com>
Tue, 29 Mar 2011 21:09:02 +0000 (14:09 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 29 Mar 2011 21:09:02 +0000 (14:09 -0700)
* 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

1  2  3 
builtin/fetch-pack.c
upload-pack.c

index bf9990ce15bf582293535606467fb209457bcfe1,52707a80adb403a887fa880c3286eb54afac5c05,b9994139345834a58b08a5ce57cf59c124e21760..65a8727453320f68e1230f702392c5ca3bb76884
@@@@ -732,11 -705,12 -696,6 +732,12 @@@@ static struct ref *do_fetch_pack(int fd
                if (args.verbose)
                        fprintf(stderr, "Server supports multi_ack_detailed\n");
                multi_ack = 2;
-                       no_done = 1;
  +             if (server_supports("no-done")) {
  +                     if (args.verbose)
  +                             fprintf(stderr, "Server supports no-done\n");
+ +                     if (args.stateless_rpc)
+ +                             no_done = 1;
  +             }
        }
        else if (server_supports("multi_ack")) {
                if (args.verbose)
diff --cc upload-pack.c
Simple merge