git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Michael J Gruber <michaeljgruber+gmane@fastmail.fm>
To: git@vger.kernel.org
Subject: Re: Where does gitweb take the owner name from?
Date: Wed, 25 Jun 2008 17:50:18 +0200	[thread overview]
Message-ID: <g3tpfs$9a4$1@ger.gmane.org> (raw)
In-Reply-To: <ce513bcc0806250741q3821e925uf8b6439b12062ba2@mail.gmail.com>

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

  reply	other threads:[~2008-06-25 15:51 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-25 14:41 Where does gitweb take the owner name from? Erez Zilber
2008-06-25 15:50 ` Michael J Gruber [this message]
2008-06-25 20:12 ` Jakub Narebski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='g3tpfs$9a4$1@ger.gmane.org' \
    --to=michaeljgruber+gmane@fastmail.fm \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).