mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-01-14 04:50:20 -06:00
Add a comment about why we exclude .git
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user