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

git submodule issue #3

Open
Daniel-ltw opened this issue Aug 8, 2016 · 2 comments
Open

git submodule issue #3

Daniel-ltw opened this issue Aug 8, 2016 · 2 comments
Assignees

Comments

@Daniel-ltw
Copy link

Need to work out how to deploy with submodules.

DEBUG [f48f6bf3] Command: cd /tmp/new-hope-repository && ( PATH=/opt/ruby-2.2.3/bin:$PATH GIT_ASKPASS=/bin/echo GIT_SSH=/tmp/new-hope/git-ssh.sh /usr/bin/env git remote update )
DEBUG [f48f6bf3]    Fetching origin
DEBUG [f48f6bf3]    From github.com:NZX/a-new-hope
DEBUG [f48f6bf3]       271bdd5..3414a88  develop    -> develop
INFO [f48f6bf3] Finished in 3.790 seconds with exit status 0 (successful).
INFO [594974e5] Running /usr/bin/env git submodule update --init --remote as deploy@localhost
DEBUG [594974e5] Command: cd /tmp/new-hope-repository && ( PATH=/opt/ruby-2.2.3/bin:$PATH GIT_ASKPASS=/bin/echo GIT_SSH=/tmp/new-hope/git-ssh.sh /usr/bin/env git submodule update --init --remote )
DEBUG [594974e5]    fatal: /usr/libexec/git-core/git-submodule cannot be used without a working tree.

Tried adding the git submodule update command in lib/capistrano/gitcopy.rb

This did not work well and return the following error.
Seems like it requires the actual working tree, which would require all repo files being cloned.

Is there a better way to solve this?

@xuwupeng2000
Copy link

😭 sob

@Daniel-ltw
Copy link
Author

I guess the whole problem lies at how we use --mirror during clone to reduce the disk usage and the time to clone.

Maybe we should not use --mirror?

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

4 participants