소스 검색

Check diff from cache for skipping subtree split

Willy-JL 1 년 전
부모
커밋
dbb19c2c2d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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