Willy-JL hai 1 ano
pai
achega
e5d76e2b76
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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