-
Notifications
You must be signed in to change notification settings - Fork 241
Open
Labels
Description
Currently, the post-receive template uses git clone to populate environments. Using git archive would greatly reduce the space used, as it's close to svn export. Using my checkout of this repo:
joseph.yaworski@jyaworski-mbpr ~/github/puppet-puppet (git)-[master] % du -hs .
8.8M .
joseph.yaworski@jyaworski-mbpr ~/github/puppet-puppet (git)-[master] % git archive --format tar --prefix export/ HEAD | tar -x
joseph.yaworski@jyaworski-mbpr ~/github/puppet-puppet (git)-[master] % du -sh export
464K exportAre there concerns using archive rather than clone?
Edit:
To check out a specific branch to a specific dir:
git archive --format tar --prefix branchname/ branchname: | tar -x -C /etc/puppet/environments