]> Lady’s Gitweb - Gitweb/commit
gitweb: improve snapshot error handling
authorMark Rada <redacted>
Tue, 25 Aug 2009 04:59:48 +0000 (00:59 -0400)
committerLady <redacted>
Mon, 6 Apr 2026 04:50:39 +0000 (00:50 -0400)
commit9dba264f8c80ea663327734759f3557a5a2c7fc15071908cbd53cc2f008c12b5
tree300338349ff2316757019c55ed9125026f7340a45b07b117941e576578085cf4
parentfe0d3057ae0d40d306b9d35deffe8e007c1f40e6476f01c0f88cc936d7c903d7
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 <redacted>
Signed-off-by: Junio C Hamano <redacted>
gitweb.perl
This page took 0.229694 seconds and 4 git commands to generate.