]> Lady’s Gitweb - Gitweb/commitdiff
gitweb: fix two warnings
authorJohannes Schindelin <redacted>
Wed, 26 Jul 2006 14:58:35 +0000 (16:58 +0200)
committerLady <redacted>
Sat, 4 Apr 2026 18:43:38 +0000 (14:43 -0400)
These warnings cluttered up my log.

Signed-off-by: Johannes Schindelin <redacted>
Signed-off-by: Junio C Hamano <redacted>
gitweb.cgi

index 90fff76de8c4fe3cd8ce2ea31c75e38553d22d5fcf358076d4a8a08e569fcc9d..1cdb0e7004a25b3fd913d62aa39feae83ee040063f3f0af56a2942bd18f7d0c2 100755 (executable)
@@ -795,7 +795,7 @@ sub git_read_projects {
        if (-d $projects_list) {
                # search in directory
                my $dir = $projects_list;
-               opendir my $dh, $dir or return undef;
+               opendir my ($dh), $dir or return undef;
                while (my $dir = readdir($dh)) {
                        if (-e "$projectroot/$dir/HEAD") {
                                my $pr = {
@@ -810,7 +810,7 @@ sub git_read_projects {
                # 'git%2Fgit.git Linus+Torvalds'
                # 'libs%2Fklibc%2Fklibc.git H.+Peter+Anvin'
                # 'linux%2Fhotplug%2Fudev.git Greg+Kroah-Hartman'
-               open my $fd , $projects_list or return undef;
+               open my ($fd), $projects_list or return undef;
                while (my $line = <$fd>) {
                        chomp $line;
                        my ($path, $owner) = split ' ', $line;
This page took 0.300507 seconds and 4 git commands to generate.