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

GitLab repo URL not being parsed correctly #3771

Open
hrishikesh-k opened this issue Dec 5, 2021 · 4 comments
Open

GitLab repo URL not being parsed correctly #3771

hrishikesh-k opened this issue Dec 5, 2021 · 4 comments
Labels

Comments

@hrishikesh-k
Copy link

Describe the bug:

A user reported this on the forums.

Some context (internal only):
https://netlify.slack.com/archives/CTCRT6VB6/p1638378975004800 and
https://netlify.slack.com/archives/C012GT6MYKU/p1638380300316300

When connecting a repo using CLI, the repo URL is probably not parsed correctly. I was able to reproduce this with GitLab, but it could be happening with other Git hosts too.

The error is visible when the site card like this:

image

links the text git@gitlab.com:hrishikeshk/test.git to https://app.netlify.com/sites/zen-wiles-50eb6a/git@gitlab.com:hrishikeshk/test.git. In other cases, it links to the repo.

To reproduce:

  1. Create a basic repo. Could be having just 1 file too, that's not important. Publish it to GitLab.
  2. Run netlify init and choose to create a new site. Follow the prompts in the terminal.
  3. Once all done, run netlify open to go to the admin area of the site and see the error.

Configuration:

System:
  OS: macOS 12.0.1
  CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
  Memory: 796.11 MB / 16.00 GB
  Shell: 5.8 - /bin/zsh
Binaries:
  Node: 14.17.5 - ~/.nvm/versions/node/v14.17.5/bin/node
  npm: 6.14.14 - ~/.nvm/versions/node/v14.17.5/bin/npm
npmPackages:
  netlify-cli: ^8.0.15 => 8.0.15 

Expected behavior

The link should go to the repo.

@hrishikesh-k hrishikesh-k added the type: bug code to address defects in shipped code label Dec 5, 2021
@ilkkanisula
Copy link

I have this same issue when trying to use netlify-cli init for newly created gitlab repo.

@serhalp
Copy link
Contributor

serhalp commented Jul 16, 2024

@hrishikesh-k any idea if this is still true? This is several years old so I'm included to close it as stale.

@hrishikesh-k
Copy link
Author

Could be happening, will test it later this week or today, and let you know.

@hrishikesh-k
Copy link
Author

Just tested, this is still an issue with the latest CLI version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants