From bf355d646a8045f20db4d3508d7074d553499dc1 Mon Sep 17 00:00:00 2001 From: Omair Majid Date: Thu, 29 Jan 2026 15:33:35 -0500 Subject: [PATCH] Keep template_feed/../content/../.gitattributes in archives Some consumers of the VMR source build consume the `git archive` generated source tarball. Without this change, the source tarball doesn't include the content/../.gitattributes file, which makes `dotnet new gitattributes` non-functional. Fixes: https://github.com/dotnet/sdk/issues/52307 --- .gitattributes | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.gitattributes b/.gitattributes index 2f46e347155a..494352c82a1e 100644 --- a/.gitattributes +++ b/.gitattributes @@ -67,3 +67,8 @@ *.verified.txt text eol=lf working-tree-encoding=UTF-8 *.verified.xml text eol=lf working-tree-encoding=UTF-8 *.verified.json text eol=lf working-tree-encoding=UTF-8 + +############################################################################### +# Ensure files are included in git archive +############################################################################### +/template_feed/Microsoft.DotNet.Common.ItemTemplates/content/Gitattributes/.gitattributes -export-ignore