single . in repository path creates non-accessible git repository

Issue #144 resolved
Marcel Huber created an issue

Tested with snapshot release of #142

Created repository x/./y

In the repository view I now have an entry x/.

The repository name show as y and Url column displays https://myhost/git/x/./y. The link itself seems to be //clean// and results in https://myhost/git/x/y

A git clone fails with both types of url.

{{{
$ GIT_SSL_NO_VERIFY=true git clone -- https://myhost/git/x/y
Cloning into 'y'...
fatal: https://myhost/git/x/y/info/refs not found: did you run git update-server-info on the server?

$ GIT_SSL_NO_VERIFY=true git clone -- https://myhost/git/x/./y
Cloning into 'y'...
fatal: https://myhost/git/x/./y/info/refs not found: did you run git update-server-info on the server?
}}}

repositories.xml contains:
{{{
<repository>
<properties/>
<contact></contact>
<creationDate>1336725319304</creationDate>
<description></description>
<id>e950a749-32c7-4d18-a8df-2247f534c0c2</id>
<name>x/./y</name>
<public>false</public>
<archived>false</archived>
<type>git</type>
</repository>
}}}

Comments (2)

  1. Log in to comment