Skip to content

Check for git submodule --recursive support#105

Merged
leehambley merged 1 commit intocapistrano:masterfrom
nilbus:git-submodule-recursive
Sep 24, 2011
Merged

Check for git submodule --recursive support#105
leehambley merged 1 commit intocapistrano:masterfrom
nilbus:git-submodule-recursive

Conversation

@nilbus
Copy link
Contributor

@nilbus nilbus commented Sep 23, 2011

git submodule x --recursive is only supported after git 1.6.5.
See https://github.com/git/git/blob/master/Documentation/RelNotes/1.6.5.txt#L147

Users with older versions of git on the deploy target using remote-cache or similar deploy methods would see this error when deploying:

 ** [10.0.0.1 :: err] Usage: git submodule [--quiet] [--cached] [add [-b branch] <repo> <path>]|[status|init|update [-i|--init] [-N|--no-fetch]|summary [-n|--summary-limit <n>] [<commit>]] [--] [<path>...]|[foreach <command>]|[sync [--] [<path>...]]
    command finished in 27929ms
*** [deploy:update_code] rolling back

This fix was tested on an OSX 10.6 (git 1.7.4.1) and Ubuntu Linux 9.10 (git 1.6.3.3) deploy targets, and against both GNU bash and BSD dash (sh).

git submodule x --recursive is only supported after git 1.6.5.
leehambley added a commit that referenced this pull request Sep 24, 2011
Check for Git submodule `--recursive` support.
@leehambley leehambley merged commit ad17ec9 into capistrano:master Sep 24, 2011
mattbrictson pushed a commit to mattbrictson/capistrano that referenced this pull request Aug 24, 2016
Mention do/end stabby lambda syntax
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

Successfully merging this pull request may close these issues.

2 participants