Просмотр исходного кода

Recurse submodules on checkout

Willy-JL 2 лет назад
Родитель
Сommit
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}
 fetch=_fetch-${temp}
 split=_split-${temp}-$(echo ${subdir} | tr / -)
 split=_split-${temp}-$(echo ${subdir} | tr / -)
 git fetch --no-tags ${repo} ${branch}:${fetch}
 git fetch --no-tags ${repo} ${branch}:${fetch}
-git checkout ${fetch}
+git checkout --recurse-submodules ${fetch}
 git subtree split -P ${subdir} -b ${split}
 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}"
 git subtree ${action} -P ${path} ${split} -m "${action^} ${path} from ${repo}"