{"thread":{"id":"14146","subject":"Where does gitweb take the owner name from?","startedAt":"2008-06-25T14:41:04Z","lastAt":"2008-06-25T20:12:31Z","messageCount":3,"participants":["Erez Zilber","Michael J Gruber","Jakub Narebski"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"81121","messageId":"ce513bcc0806250741q3821e925uf8b6439b12062ba2@mail.gmail.com","threadId":"14146","inReplyTo":null,"subject":"Where does gitweb take the owner name from?","fromName":"Erez Zilber","fromEmail":"erezzi.list@gmail.com","sentAt":"2008-06-25T14:41:04Z","receivedAt":"2008-06-25T14:41:04Z","isPatch":false,"sender":{"key":"erezzi.list@gmail.com","avatar":null},"body":"Hi,\n\nOn the main page of gitweb (the one that lists all projects), there's\nan \"Owner\" column. On my gitweb, it is empty for all projects. Where\nis this information taken from?\n\nHere is how it looks on the server when I run 'ls -l':\n\ndrwxr-xr-x 7 erez.zilber linux 4096 Jun 25 17:36 my_test.git\n\nThanks,\nErez\n"},{"id":"81130","messageId":"g3tpfs$9a4$1@ger.gmane.org","threadId":"14146","inReplyTo":"ce513bcc0806250741q3821e925uf8b6439b12062ba2@mail.gmail.com","subject":"Re: Where does gitweb take the owner name from?","fromName":"Michael J Gruber","fromEmail":"michaeljgruber+gmane@fastmail.fm","sentAt":"2008-06-25T15:50:18Z","receivedAt":"2008-06-25T15:50:18Z","isPatch":false,"sender":{"key":"git@grubix.eu","avatar":"https://avatars.githubusercontent.com/u/233215?v=4"},"body":"Erez Zilber venit, vidit, dixit 25.06.2008 16:41:\n> Hi,\n> \n> On the main page of gitweb (the one that lists all projects), there's\n> an \"Owner\" column. On my gitweb, it is empty for all projects. Where\n> is this information taken from?\n> \n> Here is how it looks on the server when I run 'ls -l':\n> \n> drwxr-xr-x 7 erez.zilber linux 4096 Jun 25 17:36 my_test.git\n> \n> Thanks,\n> Erez\n\nSources considered by gitweb are:\n1. projectlist file\n2. owner key in .git/config (\"gitweb.owner\")\n3. file owner of the git dir\n\nIt's funny this results in an empty owner in your case: What does \n\"finger erez.silber\" say?\n\nMichael\n\nUse the source, Luke ;)\n\nsub git_get_project_owner {\n         my $project = shift;\n         my $owner;\n\n         return undef unless $project;\n         $git_dir = \"$projectroot/$project\";\n\n         if (!defined $gitweb_project_owner) {\n                 git_get_project_list_from_file();\n         }\n\n         if (exists $gitweb_project_owner->{$project}) {\n                 $owner = $gitweb_project_owner->{$project};\n         }\n         if (!defined $owner){\n                 $owner = git_get_project_config('owner');\n         }\n         if (!defined $owner) {\n                 $owner = get_file_owner(\"$git_dir\");\n         }\n\n         return $owner;\n}\n"},{"id":"81176","messageId":"m3y74ti89i.fsf@localhost.localdomain","threadId":"14146","inReplyTo":"ce513bcc0806250741q3821e925uf8b6439b12062ba2@mail.gmail.com","subject":"Re: Where does gitweb take the owner name from?","fromName":"Jakub Narebski","fromEmail":"jnareb@gmail.com","sentAt":"2008-06-25T20:12:31Z","receivedAt":"2008-06-25T20:12:31Z","isPatch":false,"sender":{"key":"jnareb@gmail.com","avatar":"https://avatars.githubusercontent.com/u/2706?v=4"},"body":"\"Erez Zilber\" <erezzi.list@gmail.com> writes:\n\n> On the main page of gitweb (the one that lists all projects), there's\n> an \"Owner\" column. On my gitweb, it is empty for all projects. Where\n> is this information taken from?\n> \n> Here is how it looks on the server when I run 'ls -l':\n> \n> drwxr-xr-x 7 erez.zilber linux 4096 Jun 25 17:36 my_test.git\n\nUnfortunately it is not stated explicitely neither in gitweb/README,\nnot gitweb/INSTALL.\n\nNevertheless when you grep for 'owner' in gitweb/README you can find\nthe following fragments:\n\n * $projects_list\n   Source of projects list, either directory to scan, or text file\n   with list of repositories (in the \"<URI-encoded repository path> SPC\n   <URI-encoded repository owner>\" line format, [...]).\n   Set to $GITWEB_LIST during installation.  If empty, $projectroot is\n   used to scan for repositories.\n\n [...]\n\n * gitweb.owner\n   You can use the gitweb.owner repository configuration variable to set\n   repository's owner. It is displayed in the project list and summary\n   page. If it's not set, filesystem directory's owner is used\n   (via GECOS field / real name field from getpwiud(3)).\n\n(This might be present only in 'pu' branch, as it was part of my\npatch adding support for optional 'description' field in $projects_list\nfile).\n\n-- \nJakub Narebski\nPoland\nShadeHawk on #git\n"}]}