commit 8ea74d67af38ca843c28a1d9b18f6a643c931a6d
parent 5bdc1415663b2cb8e89ed7b89a453ed50004e75b
Author: Amitai Schleier <schmonz-web-git@schmonz.com>
Date: Thu, 5 Aug 2021 21:52:39 -0400
De-symlink .gitignore to mollify new Git.
In Git 2.32.0 and newer, `git status` (for instance) says:
warning: unable to access '.gitignore': Too many levels of symbolic links
https://github.com/git/git/blob/master/Documentation/RelNotes/2.32.0.txt
explains thus:
* It does not make sense to make ".gitattributes", ".gitignore" and
".mailmap" symlinks, as they are supposed to be usable from the
object store (think: bare repositories where HEAD:.mailmap etc.
are used). When these files are symbolic links, we used to read
the contents of the files pointed by them by mistake, which has
been corrected.
To satisfy Git, turn .gitignore back into a regular file containing the
contents of TARGETS. To satisfy other uses of TARGETS (such as in
exported tar archives, which don't include .gitignore), keep it as a
regular in-tree file too, with reminders in each to sync with the other.
Diffstat:
2 files changed, 1 insertion(+), 0 deletions(-)
diff --git a/.gitignore b/.gitignore
diff --git a/TARGETS b/TARGETS
@@ -1,3 +1,4 @@
+# Keep .gitignore and TARGETS in sync!
auto-ccld.sh
make-load
load