Skip to content

Commit ec26f09

Browse files
angavrilovgitster
authored andcommitted
gitweb: Use single implementation of export_ok check.
GitWeb source contains a special function that implements the export_ok check, but validate_project still uses a separate copy of essentially the same code. This patch makes it use the dedicated function, thus ensuring that all checks are done through a single code path. Signed-off-by: Alexander Gavrilov <angavrilov@gmail.com> Acked-by: Jakub Narebski <jnareb@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 19fb896 commit ec26f09

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

gitweb/gitweb.perl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -853,8 +853,7 @@ sub validate_project {
853853
my $input = shift || return undef;
854854
if (!validate_pathname($input) ||
855855
!(-d "$projectroot/$input") ||
856-
!check_head_link("$projectroot/$input") ||
857-
($export_ok && !(-e "$projectroot/$input/$export_ok")) ||
856+
!check_export_ok("$projectroot/$input") ||
858857
($strict_export && !project_in_list($input))) {
859858
return undef;
860859
} else {

0 commit comments

Comments
 (0)