Commit 34b31a8
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 <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>1 parent cbdefb5 commit 34b31a8
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5175 | 5175 | | |
5176 | 5176 | | |
5177 | 5177 | | |
5178 | | - | |
5179 | | - | |
5180 | 5178 | | |
5181 | 5179 | | |
| 5180 | + | |
| 5181 | + | |
5182 | 5182 | | |
5183 | 5183 | | |
5184 | 5184 | | |
| |||
0 commit comments