Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dots are replaced by hyphens in the repository path on gitlab.com #167

Closed
yuhr opened this issue Jun 23, 2017 · 2 comments · Fixed by #169
Closed

Dots are replaced by hyphens in the repository path on gitlab.com #167

yuhr opened this issue Jun 23, 2017 · 2 comments · Fixed by #169
Assignees

Comments

@yuhr
Copy link

yuhr commented Jun 23, 2017

When I git lab create foo/bar.baz, it shows:

Successfully created remote repository `https://gitlab.com/foo/bar.baz`, with local remote `gitlab`

So I expect that the remote url will be https://gitlab.com/foo/bar.baz, but I get https://gitlab.com/foo/bar-baz. Every time I created such repository, I correct the repository path on the web UI.

This behavior doesn't happen on GitHub. Is this a technical constraint specific to GitLab API?

Thanks.

@guyzmo
Copy link
Owner

guyzmo commented Jun 23, 2017

thank you for your report, I'll have a look into it shortly. Looking at the code git-repo's code does not tinkle with the name you give, so it's possible there's an issue with python-gitlab, the library being used for connecting with the gitlab API.

@guyzmo
Copy link
Owner

guyzmo commented Jun 27, 2017

cf @gpocentek's comment on the other issue:

>>> p = gl.projects.create({'name': 'bar.baz'})
>>> p.web_url
u'http://gitlab.lxd/root/bar-baz'
>>> p = gl.projects.create({'name': 'bar.baz2', 'path': 'bar.baz2'})
>>> p.web_url
u'http://gitlab.lxd/root/bar.baz2'

@guyzmo guyzmo added backlog and removed help wanted labels Jul 1, 2017
@guyzmo guyzmo self-assigned this Jul 1, 2017
@guyzmo guyzmo added in progress and removed backlog labels Jul 8, 2017
guyzmo added a commit that referenced this issue Jul 8, 2017

Verified

This commit was signed with the committer’s verified signature.
ocelotl Diego Hurtado
fixes #167
@guyzmo guyzmo closed this as completed Nov 18, 2017
@guyzmo guyzmo reopened this Nov 18, 2017
@guyzmo guyzmo added the ready label Nov 18, 2017
thoth101010 referenced this issue in thoth101010/git-repo Mar 7, 2019

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants