Преглед изворни кода

Recurse submodules on checkout

Willy-JL пре 2 година
родитељ
комит
e01c400b6e
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      .utils/subdir-helper.sh

+ 2 - 2
.utils/subdir-helper.sh

@@ -16,7 +16,7 @@ temp=$(echo ${repo%/} | rev | cut -d/ -f1,2 | rev | tr / -)-${branch}
 fetch=_fetch-${temp}
 split=_split-${temp}-$(echo ${subdir} | tr / -)
 git fetch --no-tags ${repo} ${branch}:${fetch}
-git checkout ${fetch}
+git checkout --recurse-submodules ${fetch}
 git subtree split -P ${subdir} -b ${split}
-git checkout ${prev}
+git checkout --recurse-submodules ${prev}
 git subtree ${action} -P ${path} ${split} -m "${action^} ${path} from ${repo}"