From 8c407231b8090ce63263ed51def6992a5a2831a0 Mon Sep 17 00:00:00 2001 From: Parker Moore Date: Sat, 5 Jan 2013 23:17:29 -0500 Subject: [PATCH] Migrator: cloning the default configs into the current octopress installation directly --- source/downloads/code/migrator.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/downloads/code/migrator.rb b/source/downloads/code/migrator.rb index 1f1f96a..c020b04 100755 --- a/source/downloads/code/migrator.rb +++ b/source/downloads/code/migrator.rb @@ -29,8 +29,9 @@ begin system "git clone #{OCTO_GIT} #{tmp_octo_dir}" # Make local copy of octopress/sample-octopress-configuration - system "git clone #{OCTO_CONFIG_GIT} #{TMP_OCTO_CONFIG}" FileUtils.rm_rf OCTO_CONFIG_DEST + system "git clone #{OCTO_CONFIG_GIT} #{OCTO_CONFIG_DEST}" + FileUtils.rm_rf File.join(OCTO_CONFIG_DEST, ".git") # copy new theme to current directory FileUtils.rm_rf curr_octo_dir('.themes', 'classic')