#757420 git fetch-pack: handle ERR packet during negotiation

Package:
git
Source:
git
Description:
fast, scalable, distributed revision control system
Submitter:
Jonathan Nieder
Date:
2021-08-24 01:00:04 UTC
Severity:
wishlist
Tags:
#757420#5
Date:
2014-08-07 23:17:43 UTC
From:
To:
Talking to a custom git server that has a separate quota for
negotiation:

 $ git fetch origin; # https://<something>
 fatal: git fetch_pack: expected ACK/NAK, got 'ERR User Is Over Quota'
 fatal: The remote end hung up unexpectedly

Three buglets:
 i. there's a s/-/_/ typo (and has always been, since v0.99~80, 2005-07-04).

 ii. it would be nice to handle the ERR packet instead of showing it as an
     internal error (git archive --remote already accepts an ERR packet
     in the analagous context.)

 iii. why the 'remote end hung up unexpectedly' message after fetch-pack
      has already printed a message and died?

(ii) could be handled with a patch like the following:

#757420#10
Date:
2021-08-24 00:57:03 UTC
From:
To:
Hello,

How are you doing today?
I sent you an email yesterday, did you receive it? It is a very
important message, anyway reply back to confirm that you already got
my message to enable me to give you more details..

Best Regards.
Mrs. Ameena Essa