Fix sync hook for new files
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user