summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2012-04-29 17:51:56 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2012-04-29 17:51:56 -0700
commit070d5271e464d7256f675c4259b230bf11aa2ffc (patch)
tree2131d5489094655fc0865ac94fe0dae13fa29e69
parentMerge branch 'rs/commit-list-append' (diff)
parentgitweb: Don't set owner if got empty value from projects.list (diff)
downloadtgif-070d5271e464d7256f675c4259b230bf11aa2ffc.tar.xz
Merge branch 'kk/maint-gitweb-missing-owner'
By Kacper Kornet * kk/maint-gitweb-missing-owner: gitweb: Don't set owner if got empty value from projects.list
-rwxr-xr-xgitweb/gitweb.perl6
1 files changed, 4 insertions, 2 deletions
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index 49a2ec6c0f..048f8a984a 100755
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
@@ -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;
}
}