Explorar o código

Check diff from cache for skipping subtree split

Willy-JL hai 1 ano
pai
achega
dbb19c2c2d
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

@@ -25,7 +25,7 @@ cache="${path}/.subtree-cache/${split}"
 hash="$(git rev-parse ${fetch})"
 skip=false
 if [ -f "${cache}" ]; then
-    if [ "$(<${cache})" = "${hash}" ]; then
+    if git diff --quiet "$(<${cache})" "${hash}" -- "${subdir}"; then
         skip=true
     fi
 fi