Browse code

fixed a bug in init_deploy task

Brandon Mathis authored on 27/06/2011 at 22:17:15
Showing 1 changed files
... ...
@@ -117,12 +117,13 @@ end
117 117
 desc "setup _deploy folder and deploy branch"
118 118
 task :init_deploy, :branch do |t, args|
119 119
   puts "Please provide a deploy branch, eg. rake init_deploy[gh-pages]" unless args.branch
120
-  cd "#{_deploy}" do
120
+  cd "#{deploy_dir}" do
121 121
     system "git symbolic-ref HEAD refs/heads/#{args.branch}"
122 122
     system "rm .git/index"
123 123
     system "git clean -fdx"
124 124
     system "touch README && echo 'initial commit' >> README"
125 125
     system "git add ."
126
+    system "git commit -m 'Setup for deploy with Octopress'"
126 127
     system "git push origin #{args.branch}"
127 128
   end
128 129
 end