소스 검색

Fix script

Willy-JL 1 년 전
부모
커밋
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