hexojs / hexojs/hexo-cli

Hexo init failed on `git clone`

Open
#494 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
176
Forks
77
PR merge metrics
No merged PRs in 30d

Description

## Check List

Please check followings before submitting a new feature request.

- [Y] I have already read [Docs page](https://hexo.io/docs/)
- [Y ] I have already searched existing issues

## Feature Request

Execute
```hexo init blog``` in my window10.
Tips is
```
INFO Cloning hexo-starter https://github.com/hexojs/hexo-starter.git
fatal: unable to access 'https://github.com/hexojs/hexo-starter.git/': Recv failure: Connection was reset
WARN git clone failed. Copying data instead
FATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/docs/troubleshooting.html
```

I execute the cmd:
```
git clone --recurse-submodules --depth=1 --quiet https://github.com/hexojs/hexo-starter.git blog
```
It's not work. But if I execute the below cmd:
```
git clone --recurse-submodules --depth=1 --quiet git@github.com:hexojs/hexo-starter.git blog
```
It's work.

So I changed `$basedir/node_model/hexo_cli/dist/console/init.js`
rewite GIT_REPO_URL as `git@github.com:hexojs/hexo-starter.git`;
And redo `hexo init blog`.

It's work.

I think it's a point you can improve.

## Others

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.