Check for git submodule --recursive support #105

Merged
merged 1 commit into from Sep 24, 2011

Conversation

Projects
None yet
2 participants
@nilbus
Contributor

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).

Check for git submodule --recursive support
git submodule x --recursive is only supported after git 1.6.5.
@leehambley

This comment has been minimized.

Show comment
Hide comment
@leehambley

leehambley Sep 23, 2011

@nilbus I really like this proposed solution, I'll respond to the pull request this evening, or tomorrow morning, but so far looks like a nice fix.

@nilbus I really like this proposed solution, I'll respond to the pull request this evening, or tomorrow morning, but so far looks like a nice fix.

leehambley added a commit that referenced this pull request Sep 24, 2011

Merge pull request #105 from nilbus/git-submodule-recursive
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

Merge pull request #105 from mikz/patch-1
Mention do/end stabby lambda syntax
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment