Skip to content

Commit 53c632f

Browse files
jmuchembgitster
authored andcommitted
gitweb: fix regression when filtering out forks
This fixes a condition in filter_forks_from_projects_list that failed if process directory was different from project root: in such case, the subroutine was a no-op and forks were not detected. Signed-off-by: Julien Muchembled <[email protected]> Tested-by: Jakub Narebski <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 12b1443 commit 53c632f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gitweb/gitweb.perl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2741,7 +2741,7 @@ sub filter_forks_from_projects_list {
27412741
$path =~ s/\.git$//; # forks of 'repo.git' are in 'repo/' directory
27422742
next if ($path =~ m!/$!); # skip non-bare repositories, e.g. 'repo/.git'
27432743
next unless ($path); # skip '.git' repository: tests, git-instaweb
2744-
next unless (-d $path); # containing directory exists
2744+
next unless (-d "$projectroot/$path"); # containing directory exists
27452745
$pr->{'forks'} = []; # there can be 0 or more forks of project
27462746

27472747
# add to trie

0 commit comments

Comments
 (0)