Willy-JL 1 год назад
Родитель
Сommit
e5d76e2b76
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      .utils/subtree-subdir-helper.sh

+ 1 - 1
.utils/subtree-subdir-helper.sh

@@ -21,7 +21,6 @@ temp="$(rev <<< "${repo%/}" | cut -d/ -f1,2 | rev | tr / -)-${branch}"
 fetch="_fetch-${temp}"
 split="_split-${temp}-$(tr / - <<< "${subdir}")"
 git fetch --no-tags "${repo}" "${branch}:${fetch}"
-mkdir -p "${path}/.subtree-cache"
 cache="${path}/.subtree-cache/${split}"
 hash="$(git rev-parse ${fetch})"
 skip=false
@@ -49,5 +48,6 @@ if ! $skip; then
     fi
 fi
 if $ok; then
+    mkdir -p "${path}/.subtree-cache"
     echo "${hash}" > "${cache}"
 fi