bencodezen / vue-enterprise-boilerplate

An ever-evolving, very opinionated architecture and dev environment for new Vue SPA projects using Vue CLI.
7.78k stars 1.32k forks source link

Git shallow clone issue #35

Closed kayandra closed 6 years ago

kayandra commented 6 years ago

Hi!

On the readme, the recommended way of installing this project from scratch is to create a shallow clone

git clone https://github.com/chrisvfritz/vue-enterprise-boilerplate.git my-new-project --depth 1

Problem

This can lead to issues like the shallow update not allowed error if you change the remote URL.

Solution

You will have to re-add this project to your project's remote

git remote add old https://github.com/chrisvfritz/vue-enterprise-boilerplate.git

and after that you can

git fetch --unshallow old
git remote rm old

Outro

I think switching this template to be created by vue cli might work. Just my 2 cents

chrisvfritz commented 6 years ago

Thanks for reporting this! I hadn't encountered that error before, but would simply removing --depth 1 solve the issue? I don't think it'd be a problem to do that, if so. (PR welcome if you'd like the credit. 🙂)

kayandra commented 6 years ago

It will be my honour 😄