summaryrefslogtreecommitdiff
path: root/templates/hooks--prepare-commit-msg.sample
diff options
context:
space:
mode:
authorLibravatar Lea Wiemann <lewiemann@gmail.com>2008-06-19 22:03:21 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2008-06-19 17:43:58 -0700
commit074afaa0cf69e7d49bc00d969f57893c9ddea748 (patch)
tree86e3a164d578ebbcb49bca39fbced145b89abec7 /templates/hooks--prepare-commit-msg.sample
parentGIT 1.5.6 (diff)
downloadtgif-074afaa0cf69e7d49bc00d969f57893c9ddea748.tar.xz
gitweb: standarize HTTP status codes
Many error status codes simply default to 403 Forbidden, which is not correct in most cases. This patch makes gitweb return semantically correct status codes. For convenience the die_error function now only takes the status code without reason as first parameter (e.g. 404 instead of "404 Not Found"), and it now defaults to 500 (Internal Server Error), even though the default is not used anywhere. Also documented status code conventions in die_error. Signed-off-by: Lea Wiemann <LeWiemann@gmail.com> Acked-by: Jakub Narebski <jnareb@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'templates/hooks--prepare-commit-msg.sample')
0 files changed, 0 insertions, 0 deletions