From bdfa280f6dd412464419dd133ad02781cd27a312 Mon Sep 17 00:00:00 2001 From: Eliah Kagan Date: Thu, 15 Aug 2024 19:02:14 -0400 Subject: [PATCH] Temporarily let end-of-file-fixer break LICENSE-BSD symlink On Windows, when `core.symlinks` is `false` or unset (since it defaults to `false` on Windows), Git checks out symbolic links as regular files whose contents are symlinks' target paths. Modifying those regular files and committing the changes alters the symlink target in the repository, and when they are checked out as actual symlinks, the targets are different. But the `end-of-file-fixer` pre-commit hook automatically adds newlines to the end of regular files that lack them. It doesn't do this on actual symlinks, but it does do it to regular files that stand in for symlinks. This causes it to carry a risk of breaking symlinks if it is run on Windows and the changes committed, and it is easy to miss that this will happen because `git diff` output shows it the same way as other additions of absent newlines. This deliberately commits the change that end-of-file-fixer makes to the `LICENSE-BSD` symlink, in order to allow a mitigation beyond just excluding that symlink (or replacing it with a regular file) to be tested. This change must be undone, of course. --- fuzzing/LICENSE-BSD | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fuzzing/LICENSE-BSD b/fuzzing/LICENSE-BSD index ea5b60640..4f88f81bf 120000 --- a/fuzzing/LICENSE-BSD +++ b/fuzzing/LICENSE-BSD @@ -1 +1 @@ -../LICENSE \ No newline at end of file +../LICENSE