author | Mark Rada <marada@uwaterloo.ca> | |
Tue, 25 Aug 2009 04:59:48 +0000 (00:59 -0400) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 25 Aug 2009 23:33:06 +0000 (16:33 -0700) | ||
commit | 34b31a8d5f48283ec3039777b24706585b4f9d41 | |
tree | 43bad3d433286b6f7b157cd1a3532db30144d177 | tree | snapshot |
parent | cbdefb5ac43a1a34e71121a7a6a6434f0b8aa1cf | commit | diff |
gitweb: improve snapshot error handling
The last check in the second block of checks in the &git_snapshot routine
is never executed because the second to last check is a superset of the
last check.
Switch the order of the last two checks. It has the advantage of giving
clients a more specific reason why they cannot get a snapshot format if
the format they have chosen is disabled.
Signed-off-by: Mark Rada <marada@uwaterloo.ca>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
The last check in the second block of checks in the &git_snapshot routine
is never executed because the second to last check is a superset of the
last check.
Switch the order of the last two checks. It has the advantage of giving
clients a more specific reason why they cannot get a snapshot format if
the format they have chosen is disabled.
Signed-off-by: Mark Rada <marada@uwaterloo.ca>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
gitweb/gitweb.perl | diff | blob | history |