Skip to content

Commit

Permalink
Merge branch 'jm/maint-gitweb-filter-forks-fix' into maint
Browse files Browse the repository at this point in the history
* jm/maint-gitweb-filter-forks-fix:
  gitweb: fix regression when filtering out forks
  • Loading branch information
Junio C Hamano committed Nov 9, 2011
2 parents 992499d + 53c632f commit 1a61a9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gitweb/gitweb.perl
Original file line number Diff line number Diff line change
Expand Up @@ -2886,7 +2886,7 @@ sub filter_forks_from_projects_list {
$path =~ s/\.git$//; # forks of 'repo.git' are in 'repo/' directory
next if ($path =~ m!/$!); # skip non-bare repositories, e.g. 'repo/.git'
next unless ($path); # skip '.git' repository: tests, git-instaweb
next unless (-d $path); # containing directory exists
next unless (-d "$projectroot/$path"); # containing directory exists
$pr->{'forks'} = []; # there can be 0 or more forks of project

# add to trie
Expand Down

0 comments on commit 1a61a9d

Please sign in to comment.