Merge branch 'kk/maint-gitweb-missing-owner'
authorJunio C Hamano <gitster@pobox.com>
Mon, 30 Apr 2012 00:51:56 +0000 (17:51 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 30 Apr 2012 00:51:56 +0000 (17:51 -0700)
By Kacper Kornet
* kk/maint-gitweb-missing-owner:
gitweb: Don't set owner if got empty value from projects.list

gitweb/gitweb.perl
index 49a2ec6c0fa316f96cebbdf1383ea7df3bceea2c..048f8a984a48b9534830dda8f8e6e48a6c06f83a 100755 (executable)
@@ -3012,9 +3012,11 @@ sub git_get_projects_list {
                        }
                        if (check_export_ok("$projectroot/$path")) {
                                my $pr = {
-                                       path => $path,
-                                       owner => to_utf8($owner),
+                                       path => $path
                                };
+                               if ($owner) {
+                                       $pr->{'owner'} = to_utf8($owner);
+                               }
                                push @list, $pr;
                        }
                }