Copying .git directory from old to new

This commit is contained in:
Parker Moore 2013-01-05 23:48:16 -05:00
parent 4e3b561a10
commit 29515acce5
1 changed files with 4 additions and 0 deletions

View File

@ -27,6 +27,10 @@ begin
# Make local copy of imathis/octopress
FileUtils.rm_rf new_octo_dir
system "git clone #{OCTO_GIT} #{new_octo_dir}; cd #{new_octo_dir}; git checkout 2.1"
# Copy .git from old to new
FileUtils.rm_rf new_octo_dir('.git')
FileUtils.cp_r old_octo_dir('.git'), new_octo_dir
# Make local copy of octopress/sample-octopress-configuration
FileUtils.rm_rf OCTO_CONFIG_DEST