Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
gitweb: prefer git_get_project_owner() over get_file_owner()
author
Miklos Vajna
<vmiklos@frugalware.org>
Tue, 3 Jul 2007 22:11:23 +0000
(
00:11
+0200)
committer
Junio C Hamano
<gitster@pobox.com>
Sat, 7 Jul 2007 21:18:29 +0000
(14:18 -0700)
This way if $projects_list exists, it'll be used, otherwise get_file_owner()
will be used as before.
Signed-off-by: Miklos Vajna <vmiklos@frugalware.org>
Acked-by: Luben Tuikov <ltuikov@yahoo.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
gitweb/gitweb.perl
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
4785245
)
diff --git
a/gitweb/gitweb.perl
b/gitweb/gitweb.perl
index d5b8812a121e4cd7ec02c2d17412f361134a01bf..9d728d7738427dab3081d17e19613b6a690da8eb 100755
(executable)
--- a/
gitweb/gitweb.perl
+++ b/
gitweb/gitweb.perl
@@
-3178,7
+3178,7
@@
sub git_project_list_body {
$pr->{'descr'} = chop_str($descr, 25, 5);
}
if (!defined $pr->{'owner'}) {
$pr->{'descr'} = chop_str($descr, 25, 5);
}
if (!defined $pr->{'owner'}) {
- $pr->{'owner'} = g
et_file_owner("$projectroot/
$pr->{'path'}") || "";
+ $pr->{'owner'} = g
it_get_project_owner("
$pr->{'path'}") || "";
}
if ($check_forks) {
my $pname = $pr->{'path'};
}
if ($check_forks) {
my $pname = $pr->{'path'};
@@
-3602,7
+3602,7
@@
sub git_project_index {
foreach my $pr (@projects) {
if (!exists $pr->{'owner'}) {
foreach my $pr (@projects) {
if (!exists $pr->{'owner'}) {
- $pr->{'owner'} = g
et_file_owner("$projectroot/
$pr->{'path'}");
+ $pr->{'owner'} = g
it_get_project_owner("
$pr->{'path'}");
}
my ($path, $owner) = ($pr->{'path'}, $pr->{'owner'});
}
my ($path, $owner) = ($pr->{'path'}, $pr->{'owner'});