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

Fix pushing to uncommon Git hosts #441

Merged
merged 1 commit into from
Aug 3, 2019

Conversation

futurist
Copy link
Contributor

@futurist futurist commented Jul 24, 2019

For the doc of hosted-git-info:

If the URL can't be matched with a git host, null will be returned

So hostedGitInfo.fromUrl() may return null, this commit fixed the issue.

Fixes #440

For the doc of [hosted-git-info](https://github.com/npm/hosted-git-info):

> If the URL can't be matched with a git host, null will be returned

So `hostedGitInfo.fromUrl()` may return `null`, this commit fixed the issue.
@itaisteinherz itaisteinherz changed the title fix issue #440 Fix pushing to special Git hosts Aug 3, 2019
@itaisteinherz itaisteinherz changed the title Fix pushing to special Git hosts Fix pushing to uncommon Git hosts Aug 3, 2019
Copy link
Collaborator

@itaisteinherz itaisteinherz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@itaisteinherz itaisteinherz merged commit c0dc3a3 into sindresorhus:master Aug 3, 2019
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

Successfully merging this pull request may close these issues.

Throw Cannot read property 'type' of null for private git repo
2 participants