Skip to content

Commit eaf0572

Browse files
committed
Fix git check in verify generated files
Git 2.46.0 accidentally broke git diff --exit-code for files flagged with -diff. Add the -a flag to restore the previous behavior. This issue is already fixed in gits next branch.
1 parent 39bacaf commit eaf0572

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/actions/verify-generated-files/action.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@ runs:
1212
ext/tokenizer/tokenizer_data_gen.php
1313
build/gen_stub.php -f
1414
build/gen_stub.php --generate-optimizer-info
15-
git add . -N && git diff --exit-code
15+
# Use the -a flag for a bug in git 2.46.0, which doesn't consider changed -diff files.
16+
git add . -N && git diff -a --exit-code

0 commit comments

Comments
 (0)