]> git.ipfire.org Git - thirdparty/git.git/blobdiff - git-submodule.sh
Git 2.17.3
[thirdparty/git.git] / git-submodule.sh
index 7e27d0a0da4d130f9ccb92612848da8e219427a0..73594e0e35d094a329fecbe3e59e2aac6630ad6c 100755 (executable)
@@ -34,6 +34,7 @@ reference=
 cached=
 recursive=
 init=
+require_init=
 files=
 remote=
 nofetch=
@@ -475,6 +476,10 @@ cmd_update()
                -i|--init)
                        init=1
                        ;;
+               --require-init)
+                       init=1
+                       require_init=1
+                       ;;
                --remote)
                        remote=1
                        ;;
@@ -553,6 +558,7 @@ cmd_update()
                ${update:+--update "$update"} \
                ${reference:+"$reference"} \
                ${depth:+--depth "$depth"} \
+               ${require_init:+--require-init} \
                ${recommend_shallow:+"$recommend_shallow"} \
                ${jobs:+$jobs} \
                "$@" || echo "#unmatched" $?