* Where does gitweb take the owner name from?
@ 2008-06-25 14:41 Erez Zilber
2008-06-25 15:50 ` Michael J Gruber
2008-06-25 20:12 ` Jakub Narebski
0 siblings, 2 replies; 3+ messages in thread
From: Erez Zilber @ 2008-06-25 14:41 UTC (permalink / raw)
To: git@vger.kernel.org
Hi,
On the main page of gitweb (the one that lists all projects), there's
an "Owner" column. On my gitweb, it is empty for all projects. Where
is this information taken from?
Here is how it looks on the server when I run 'ls -l':
drwxr-xr-x 7 erez.zilber linux 4096 Jun 25 17:36 my_test.git
Thanks,
Erez
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Where does gitweb take the owner name from?
2008-06-25 14:41 Where does gitweb take the owner name from? Erez Zilber
@ 2008-06-25 15:50 ` Michael J Gruber
2008-06-25 20:12 ` Jakub Narebski
1 sibling, 0 replies; 3+ messages in thread
From: Michael J Gruber @ 2008-06-25 15:50 UTC (permalink / raw)
To: git
Erez Zilber venit, vidit, dixit 25.06.2008 16:41:
> Hi,
>
> On the main page of gitweb (the one that lists all projects), there's
> an "Owner" column. On my gitweb, it is empty for all projects. Where
> is this information taken from?
>
> Here is how it looks on the server when I run 'ls -l':
>
> drwxr-xr-x 7 erez.zilber linux 4096 Jun 25 17:36 my_test.git
>
> Thanks,
> Erez
Sources considered by gitweb are:
1. projectlist file
2. owner key in .git/config ("gitweb.owner")
3. file owner of the git dir
It's funny this results in an empty owner in your case: What does
"finger erez.silber" say?
Michael
Use the source, Luke ;)
sub git_get_project_owner {
my $project = shift;
my $owner;
return undef unless $project;
$git_dir = "$projectroot/$project";
if (!defined $gitweb_project_owner) {
git_get_project_list_from_file();
}
if (exists $gitweb_project_owner->{$project}) {
$owner = $gitweb_project_owner->{$project};
}
if (!defined $owner){
$owner = git_get_project_config('owner');
}
if (!defined $owner) {
$owner = get_file_owner("$git_dir");
}
return $owner;
}
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Where does gitweb take the owner name from?
2008-06-25 14:41 Where does gitweb take the owner name from? Erez Zilber
2008-06-25 15:50 ` Michael J Gruber
@ 2008-06-25 20:12 ` Jakub Narebski
1 sibling, 0 replies; 3+ messages in thread
From: Jakub Narebski @ 2008-06-25 20:12 UTC (permalink / raw)
To: Erez Zilber; +Cc: git@vger.kernel.org
"Erez Zilber" <erezzi.list@gmail.com> writes:
> On the main page of gitweb (the one that lists all projects), there's
> an "Owner" column. On my gitweb, it is empty for all projects. Where
> is this information taken from?
>
> Here is how it looks on the server when I run 'ls -l':
>
> drwxr-xr-x 7 erez.zilber linux 4096 Jun 25 17:36 my_test.git
Unfortunately it is not stated explicitely neither in gitweb/README,
not gitweb/INSTALL.
Nevertheless when you grep for 'owner' in gitweb/README you can find
the following fragments:
* $projects_list
Source of projects list, either directory to scan, or text file
with list of repositories (in the "<URI-encoded repository path> SPC
<URI-encoded repository owner>" line format, [...]).
Set to $GITWEB_LIST during installation. If empty, $projectroot is
used to scan for repositories.
[...]
* gitweb.owner
You can use the gitweb.owner repository configuration variable to set
repository's owner. It is displayed in the project list and summary
page. If it's not set, filesystem directory's owner is used
(via GECOS field / real name field from getpwiud(3)).
(This might be present only in 'pu' branch, as it was part of my
patch adding support for optional 'description' field in $projects_list
file).
--
Jakub Narebski
Poland
ShadeHawk on #git
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-06-25 20:13 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-25 14:41 Where does gitweb take the owner name from? Erez Zilber
2008-06-25 15:50 ` Michael J Gruber
2008-06-25 20:12 ` Jakub Narebski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).