From d8265ad34e3f5d21002810b6727d4badffb8d21c Mon Sep 17 00:00:00 2001 From: Federico Ceratto Date: Sat, 10 May 2025 11:03:11 +0200 Subject: [PATCH] Stop including broken LFS files in source tarball --- .gitattributes | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.gitattributes b/.gitattributes index 24a8e879..710a2b95 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1 +1,12 @@ +# LFS configuration for images from the wiki *.png filter=lfs diff=lfs merge=lfs -text + +# Exclude LFS-tracked files from the tarball +/wiki/img/ export-ignore + +# exclude .gitattributes itself from the tarball +.gitattributes export-ignore + +# tip: can be tested using +# git archive --format=tar.gz --output=source.tar.gz HEAD && \ +# tar tfvz source.tar.gz | grep -e '.png' -e '.gitattributes'