Use --recurse-submodules instead of --recursive

The option --recursive is not documented for git >2.11 (2016),
instead --recurse-submodules should be used.
This commit is contained in:
jhagen 2019-10-08 11:22:04 +02:00 committed by Darko Poljak
parent 6d2e81d0dc
commit 0c7d98e89e
2 changed files with 2 additions and 2 deletions

View file

@ -35,7 +35,7 @@ owner=$(cat "$__object/parameter/owner")
group=$(cat "$__object/parameter/group")
mode=$(cat "$__object/parameter/mode")
[ -f "$__object/parameter/recursive" ] && recursive='--recursive' || recursive=''
[ -f "$__object/parameter/recursive" ] && recursive='--recurse-submodules' || recursive=''
[ "$state_should" = "$state_is" ] \
&& [ "$owner" = "$owner_is" ] \

View file

@ -36,7 +36,7 @@ owner
User to chown to.
recursive
Passes the --recursive flag to git when cloning the repository.
Passes the --recurse-submodules flag to git when cloning the repository.
EXAMPLES
--------