Fix sync hook for new files

This commit is contained in:
sas.fajri
2026-04-15 15:38:33 +07:00
parent e090b55a55
commit 03c8360dfc

View File

@@ -42,7 +42,7 @@ changed_list="$tmpdir/changed-files.z"
case "$MODE" in
commit)
git -C "$ROOT_DIR" diff-tree --no-commit-id --root --diff-filter=ACMR -r -z HEAD > "$changed_list"
git -C "$ROOT_DIR" diff-tree --no-commit-id --root --diff-filter=ACMR --name-only -r -z HEAD > "$changed_list"
;;
merge)
if git -C "$ROOT_DIR" rev-parse -q --verify ORIG_HEAD >/dev/null 2>&1; then