Re: Where does gitweb take the owner name from?

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Michael J Gruber
Date: Wednesday, June 25, 2008 - 8:50 am

Erez Zilber venit, vidit, dixit 25.06.2008 16:41:

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;
}

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Where does gitweb take the owner name from?, Erez Zilber, (Wed Jun 25, 7:41 am)
Re: Where does gitweb take the owner name from?, Michael J Gruber, (Wed Jun 25, 8:50 am)
Re: Where does gitweb take the owner name from?, Jakub Narebski, (Wed Jun 25, 1:12 pm)