aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2012-04-29 17:51:56 -0700
committerJunio C Hamano <gitster@pobox.com>2012-04-29 17:51:56 -0700
commit070d5271e464d7256f675c4259b230bf11aa2ffc (patch)
tree2131d5489094655fc0865ac94fe0dae13fa29e69
parent6a8989709efbd6d5187005497907264fde026ae9 (diff)
parent75e0dffef009bb06072e44d38555373639d94986 (diff)
downloadgit-070d5271e464d7256f675c4259b230bf11aa2ffc.tar.gz
git-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 49a2ec6c0..048f8a984 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;
}
}