Browse Source

Add cached skip message

Willy-JL 1 year ago
parent
commit
addde485f6
1 changed files with 3 additions and 1 deletions
  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
 fi
 fi
 ok=true
 ok=true
-if ! $skip; then
+if $skip; then
+    echo "No updates, skipping expensive subtree split."
+else
     git checkout "${fetch}"
     git checkout "${fetch}"
     exec {capture}>&1
     exec {capture}>&1
     result="$(git subtree split -P "${subdir}" -b "${split}" 2>&1 | tee /proc/self/fd/$capture)"
     result="$(git subtree split -P "${subdir}" -b "${split}" 2>&1 | tee /proc/self/fd/$capture)"