threads / discuss / 20671

gitweb and symbolic links

Subject: gitweb and symbolic links

## tl;dr

3 messages between Aug 20, 2009 and Aug 20, 2009.

replies: 2people: 3as markdown or json

Marco Gualtieri· Aug 20, 2009, 01:15 UTC · lore
Hello,
I am wondering about a possibly easy bug which you may be aware of.

For some reason if I place a symbolic link in a directory under the project root, gitweb is no longer able to find the project. I was looking through the .cgi file but I don't know enough perl to fix the problem myself.

Let me know if this makes sense. Cheers Marco

Changsheng Jiang· Aug 20, 2009, 02:32 UTC · re: Marco Gualtieri · lore

Re: gitweb and symbolic links

Most WEB servers disable following link for security reasons. Check it's disabled first.

                                                      Changsheng Jiang
On Thu, Aug 20, 2009 at 09:15, Marco Gualtieri<mgualt@math.utoronto.ca> wrote:
Show 17 quoted lines
> Hello,
>
> I am wondering about a possibly easy bug which you may be aware of.
>
> For some reason if I place a symbolic link in a directory under the project
> root,  gitweb is no longer able to find the project.  I was looking through
> the .cgi file but I don't know enough perl to fix the problem myself.
>
> Let me know if this makes sense.
> Cheers
> Marco
>
> --
> 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
>
Jakub Narebski· Aug 20, 2009, 15:03 UTC · re: Marco Gualtieri · lore

Re: gitweb and symbolic links

Marco Gualtieri <mgualt@math.utoronto.ca> writes:
Show 10 quoted lines
> Hello,
> 
> I am wondering about a possibly easy bug which you may be aware of.
> 
> For some reason if I place a symbolic link in a directory under the
> project root,  gitweb is no longer able to find the project.  I was
> looking through the .cgi file but I don't know enough perl to fix the
> problem myself.
> 
> Let me know if this makes sense.

WORKSFORME. I have gitweb setup so some of repositories are in $projectroot directory via symlink, either to repository itself, or with symlinked earlier part of path, and it works correctly and shows all those repositories.

I suspect that your web server is configured to not follow symbolic links, or your user account used by web server is not allowed (doesn't have permissions) to follow symbolic links.

P.S. You should look into source file gitweb/gitweb.perl, not installed script gitweb.cgi

-- 
Jakub Narebski

Git User's Survey 2009: http://tinyurl.com/GitSurvey2009

← back to recent threads