From 2e387e9bcb1af1e6e95aa4110a06b5ee3ce9ea90 Mon Sep 17 00:00:00 2001 From: Anthony Sottile Date: Wed, 25 Jun 2014 11:46:04 -0700 Subject: [PATCH] Add a comment about why we exclude .git --- pre_commit/make_archives.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pre_commit/make_archives.py b/pre_commit/make_archives.py index 4bae338c..a13e66b4 100644 --- a/pre_commit/make_archives.py +++ b/pre_commit/make_archives.py @@ -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