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

EGITNOPERMISSION error if trailing .git is missing from repository URL #774

Closed
pvdlg opened this issue May 4, 2018 · 2 comments
Closed

Comments

@pvdlg
Copy link
Member

pvdlg commented May 4, 2018

In certain cases, apparently with GitHub and Travis, if the repository URL doesn't end with .git the command git push --dry-run <repositoryUrl> HEAD:<branch> fails and semantic-release errors out with EGITNOPERMISSION.

It's not really clear under which circumstances the issue happens.

See #771 for an example of the problem.
However it doesn't happen in this test: https://travis-ci.org/pvdlg/test-sr/jobs/374590162#L443

We would need to figure out in which circumstances (GitHub repo config, Travis image, Git version, etc...) a URL without .git fails. Depending on the finding we would add the .git to the URL in such circumstances or we would write a FAQ or troubleshooting section explaining the findings.

The .git is not added automatically as some Git host, such as VSTS doesn't work with it. It's not really clear when it is required or not, so for now semantic-release keep it if it's set by the user in the package.json or in the repositoryUrl and doesn't added if it's missing.

@pvdlg pvdlg changed the title Trailing .git is sometime required in repository URL EGITNOPERMISSION error if trailing .git is missing from repository URL May 4, 2018
@marceloavf
Copy link

I was getting this error in VSTS so I changed to ssh authentication and it stops.

Old url:

"url": "https://xxxxxx.visualstudio.com/xxxxx/_git/xxxx"

New one:

"url": "ssh://xxxx@vs-ssh.visualstudio.com:22/_ssh/xxxxx"

@pvdlg
Copy link
Member Author

pvdlg commented Nov 16, 2018

Closing as the problem doesn't seems to happen anymore

@pvdlg pvdlg closed this as completed Nov 16, 2018
@ghost ghost removed the info requested label Nov 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants