Excluding files from git archive exports using gitattributesFeeding the Cloud
<a href="https://creativecommons.org/licenses/by-sa/4.0/">Creative Commons Attribution-ShareAlike 4.0 International License</a>
https://feeding.cloud.geek.nz/posts/excluding-files-from-git-archive/Feeding the Cloudikiwiki2016-12-23T19:34:36Zhttps://feeding.cloud.geek.nz/posts/excluding-files-from-git-archive/comment_1_8b2acffd99897e99742ed9b8fc839171/Anonymous2012-11-04T04:30:26Z2010-02-09T06:56:14Z
I understand why you'd exclude the .git* files, but why exclude the test suite?
https://feeding.cloud.geek.nz/posts/excluding-files-from-git-archive/comment_2_9de8278866f13a725fcf7828fe9a341e/François2012-11-04T04:30:26Z2010-02-09T07:23:41Z
<p>Currently the Mahara test directory includes a bunch of stuff which drives our Hudson-based continuous integration server and would take the tarball from about 4 megs to 10 megs.</p>
<p>Once we separate these things out, we can start shipping the tests with the source code.</p>
It's missing a piecehttps://feeding.cloud.geek.nz/posts/excluding-files-from-git-archive/comment_3_beabd88b7531f707be251902c83b22af/Gp2014-01-10T00:18:17Z2014-01-09T15:48:54Z
Without --worktree-attributes passed as option to git archive the trick doesn't work.
--worktree-attributeshttps://feeding.cloud.geek.nz/posts/excluding-files-from-git-archive/comment_4_be6644c4f259c9b0d15579fdd3c10283/Anonyme2016-12-23T19:34:36Z2015-02-03T18:18:02Z
nah, if you commit the .gitattributes file first you don't need that option. go look up the definition of worktree as it relates to git