فهرست منبع

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}"