summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKacper Kornet <draenog@pld-linux.org>2012-04-24 17:50:05 (GMT)
committerJunio C Hamano <gitster@pobox.com>2012-04-25 23:41:37 (GMT)
commit75e0dffef009bb06072e44d38555373639d94986 (patch)
treee2f5eea51cbe7f7b95250119c66a293d722a621c
parentfdec2eb8ebbf995a77e2ab9971565c792b52944a (diff)
downloadgit-75e0dffef009bb06072e44d38555373639d94986.zip
git-75e0dffef009bb06072e44d38555373639d94986.tar.gz
git-75e0dffef009bb06072e44d38555373639d94986.tar.bz2
gitweb: Don't set owner if got empty value from projects.list
Prevent setting owner to an empty value if it is not specified in projects.list file. Otherwise it stops retrieving information about the owner from other files. Signed-off-by: Kacper Kornet <draenog@pld-linux.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rwxr-xr-xgitweb/gitweb.perl6
1 files changed, 4 insertions, 2 deletions
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index a8b5fad..f9ec0de 100755
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
@@ -2997,9 +2997,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;
}
}