DEPRECATED. I managed to squeeze another year out of this, but moving on to a Docker platform in Calavera2. [This is a project to create a simplified, reproduceable DevOps pipeline for educational purposes, using git, Vagrant, Chef, Java, JUnit, Ant, Jenkins, Artifactory, and related technologies. ]
in startup.sh and windows.bat we could do this automatically:
In a text editor open /opt/chefdk/embedded/apps/berkshelf/lib/berkshelf/berksfile.rb
Find the line starting with EXCLUDED_VCS_FILES_WHEN_VENDORING
change '.git' to '**/.git' in this line:
EXCLUDED_VCS_FILES_WHEN_VENDORING = ['.arch-ids', '{arch}', '.bzr', \ '.bzrignore', '.bzrtags', 'CVS', '.cvsignore', '_darcs', '.git', '.hg', \ '.hgignore', '.hgrags', 'RCS', 'SCCS', '.svn'].freeze
See https://github.com/berkshelf/vagrant-berkshelf/issues/237.