Skip to content

Commit 1a61a9d

Browse files
committed
Merge branch 'jm/maint-gitweb-filter-forks-fix' into maint
* jm/maint-gitweb-filter-forks-fix: gitweb: fix regression when filtering out forks
2 parents 992499d + 53c632f commit 1a61a9d

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
@@ -2886,7 +2886,7 @@ sub filter_forks_from_projects_list {
28862886
$path =~ s/\.git$//; # forks of 'repo.git' are in 'repo/' directory
28872887
next if ($path =~ m!/$!); # skip non-bare repositories, e.g. 'repo/.git'
28882888
next unless ($path); # skip '.git' repository: tests, git-instaweb
2889-
next unless (-d $path); # containing directory exists
2889+
next unless (-d "$projectroot/$path"); # containing directory exists
28902890
$pr->{'forks'} = []; # there can be 0 or more forks of project
28912891

28922892
# add to trie

0 commit comments

Comments
 (0)