Add a comment about why we exclude .git

This commit is contained in:
Anthony Sottile
2014-06-25 11:46:04 -07:00
parent 16b3a37047
commit 2e387e9bcb

View File

@@ -47,6 +47,8 @@ def make_archive(name, repo, ref, destdir):
local['git']('checkout', ref)
# We don't want the '.git' directory
# It adds a bunch of size to the archive and we don't use it at
# runtime
shutil.rmtree(os.path.join(tempdir, '.git'))
# XXX: py2.6 derps if filename is unicode while writing