Cli: Manual site creation issue with some remotes

Created on 31 Jan 2019  路  3Comments  路  Source: netlify/cli

Reported from a user via support:

When parsing the locale repo in the init command, the https://www.npmjs.com/package/git-remote-origin-url doesn鈥檛 return ssh:// and in this case, the correct path is lost. (issue: https://app.intercom.io/a/apps/q245f50x/inbox/inbox/conversation/20585273612#part_id=comment-20585273612-2590190500)

bug

Most helpful comment

@jackmawer I think you would have to contact support and ask them to do it. The sites API has the repository settings, but I wasn't able to change the URLs using the PATCH or PUT methods - changes to the URL fields were ignored. I don't know why they changes couldn't be allowed.

All 3 comments

I found that "netlify init --manual" got the URL wrong for my remote also. It is

ssh://[email protected]/some/path/repo.git

Once the site was created, the repository URL showed up just as:

some/path/repo.git

with no username/host portion at all.

I was able to set "netlify sites:create -m --with-ci" to set it up manually.

Is there a way to fix this for a site that has already been setup?

@jackmawer I think you would have to contact support and ask them to do it. The sites API has the repository settings, but I wasn't able to change the URLs using the PATCH or PUT methods - changes to the URL fields were ignored. I don't know why they changes couldn't be allowed.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

JCMais picture JCMais  路  5Comments

janbaer picture janbaer  路  4Comments

mrlubos picture mrlubos  路  5Comments

karl-cardenas-coding picture karl-cardenas-coding  路  3Comments

lukasluecke picture lukasluecke  路  3Comments