diff options
author | Kacper Kornet <draenog@pld-linux.org> | 2012-04-24 19:50:05 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-04-25 16:41:37 -0700 |
commit | 75e0dffef009bb06072e44d38555373639d94986 (patch) | |
tree | e2f5eea51cbe7f7b95250119c66a293d722a621c /gitweb | |
parent | fdec2eb8ebbf995a77e2ab9971565c792b52944a (diff) | |
download | git-75e0dffef009bb06072e44d38555373639d94986.tar.gz git-75e0dffef009bb06072e44d38555373639d94986.tar.xz |
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>
Diffstat (limited to 'gitweb')
-rwxr-xr-x | gitweb/gitweb.perl | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl index a8b5fad26..f9ec0de66 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; } } |