mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 16:24:40 +04:00
Add a comment about why we exclude .git
This commit is contained in:
parent
16b3a37047
commit
2e387e9bcb
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue