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

Custom Template Issue with Private Bitbucket Repo #543

Closed
bajras opened this issue Jul 27, 2017 · 3 comments
Closed

Custom Template Issue with Private Bitbucket Repo #543

bajras opened this issue Jul 27, 2017 · 3 comments

Comments

@bajras
Copy link

bajras commented Jul 27, 2017

Im having a issue with the custom template and its hosted at my work's private bitbucket repo and get the following error:

vue-cli · Failed to download repo ssh://[email protected]:7999/mac/vue-moo-webpack-boilerplate.git: 'git clone' failed with status 128
I tried all the mentioned steps:
vue init -c ssh://[email protected]:7999/mac/vue-moo-webpack-boilerplate.git yay
vue init ssh://[email protected]:7999/mac/vue-moo-webpack-boilerplate.git --clone yay

When I put in on a public Github repo it works fine but not sure why its not working with the private bitbucket repo?

When I do git clone bitbucket of the exact repo it works fine as so I can tell its not the connection issue with SSH.

git clone ssh://[email protected]:7999/mac/vue-moo-webpack-boilerplate.git

Any help would be highly appreciated. Thanks.

@kospot
Copy link

kospot commented Aug 15, 2017

do the two step, can fix it
1、in the window system, the symbol ':' is can not be in a file name
2、update the module download-git-repo must to the lastest

@bajras
Copy link
Author

bajras commented Aug 15, 2017

@kospot That doesnt work.

@kospot
Copy link

kospot commented Aug 16, 2017

@bajras first, you may edit vue-cli/bin/vue-init at line 68, change to this:
var tmp = path.join(home, '.vue-templates', template.replace(/[\/|:]/g, '-'))
then the module download-git-repo must to the lastest @1.0.1

my gitlab url is 'http://192.168.44.125/minghua/vue-template-test.git'
so i use
vue-init -c http://192.168.44.125:minghua/vue-template-test test2

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

3 participants