gitlist icon indicating copy to clipboard operation
gitlist copied to clipboard

git clone over https does not work

Open gsnw opened this issue 3 years ago • 0 comments

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.

gsnw avatar Oct 03 '22 07:10 gsnw