git export-subst is a misfeature, please don't use it. It makes the archive contents for a tag (incl. the GitHub autogenerated one) change over time—a reproducibility nightmare. Here it breaks Go modules: https://github.com/golang/go/issues/27153 … Here it breaks Homebrew:https://github.com/Homebrew/homebrew-core/issues/21774 …
Uhg, the whole gitattributes system looks like it's broken in this way -- it's unversioned metadata associated with versioned files/trees...