소스 검색

Add cached skip message

Willy-JL 1 년 전
부모
커밋
addde485f6
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      .utils/subtree-subdir-helper.sh

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

@@ -30,7 +30,9 @@ if [ -f "${cache}" ]; then
     fi
 fi
 ok=true
-if ! $skip; then
+if $skip; then
+    echo "No updates, skipping expensive subtree split."
+else
     git checkout "${fetch}"
     exec {capture}>&1
     result="$(git subtree split -P "${subdir}" -b "${split}" 2>&1 | tee /proc/self/fd/$capture)"