Skip to content

git clone over https does not work #919

@ghost

Description

My bare repository test.git ist outside the public folder /www/htdocs/repo.
I can open the test.git repository via gitlist, but when I try to clone it via https, I become the following error message.

When I execute https://myurl.com/test.git in my Browser I land in gitlist.

[2022-10-03T08:07:56.191991+02:00] request.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\NotFoundHttpException: "No route found for "GET https://myurl.com/test.git/info/refs"" at /www/htdocs/vendor/symfony/http-kernel/EventListener/RouterListener.php line 130 {"exception":"[object] (Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException(code: 0): No route found for \"GET https://myurl.com/test.git/info/refs\" at /www/htdocs/vendor/symfony/http-kernel/EventListener/RouterListener.php:130)\n[previous exception] [object] (Symfony\\Component\\Routing\\Exception\\ResourceNotFoundException(code: 0): No routes found for \"/test.git/info/refs/\". at /www/htdocs/vendor/symfony/routing/Matcher/Dumper/CompiledUrlMatcherTrait.php:74)"} []

I don't know if this a bug or if I need to link the repository folder inside the gitlist public web folder and change the clone URL directly to the repo folder.

Over SSH everything works fine and the info/refs file exists.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions