authrequired.cgi: use an 'ERR ' packet for older Git versions
commit18cd12eb0dbe5f75bfcdb798e54d70d1b5776d2d
authorKyle J. McKay <mackyle@gmail.com>
Sun, 14 Sep 2014 01:20:45 +0000 (13 18:20 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Sun, 14 Sep 2014 01:20:45 +0000 (13 18:20 -0700)
treed0ca16641ba7e3fcffbb5dfd4697cdf6eac5f15d
parent3eb66cacfd7b8c9aa336a2da39db4c0474e57e5d
authrequired.cgi: use an 'ERR ' packet for older Git versions

If a smart push is attempted and it appears that the client is
an older version of Git, send the error message as an 'ERR '
packet instead of a text/plain response so the client can
display it.

In this case "older" is defined as Git < 1.8.3 or a different
client entirely such as JGit or libgit2.
cgi/authrequired.cgi