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

Add option for cloning/updating with submodules #94

Open
ardentsword opened this issue May 28, 2019 · 0 comments
Open

Add option for cloning/updating with submodules #94

ardentsword opened this issue May 28, 2019 · 0 comments

Comments

@ardentsword
Copy link

I have a couple git submodules inside my repository, I would love to have an integrated option to clone/init those along with my main repository.

My current solution is to add a beforePreparing() step:

    public function beforePreparing()
    {
        $this->runRemote('cd {{ deploy_dir }}/repo; git submodule update --init --recursive;');
    }

This updates/initializes all submodules. It feels a bit hacky though, since this should really be in the doUpdateCode() function.

@ardentsword ardentsword changed the title Add option for cloning with submodules Add option for cloning/updating with submodules Jun 4, 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

No branches or pull requests

1 participant