Browse code

Wraps git commit message in double quotes, fixes #139

Frederic Hemberger authored on 18/09/2011 at 12:07:43
Showing 1 changed files
... ...
@@ -232,7 +232,7 @@ multitask :push do
232 232
     system "git add -u"
233 233
     puts "\n## Commiting: Site updated at #{Time.now.utc}"
234 234
     message = "Site updated at #{Time.now.utc}"
235
-    system "git commit -m '#{message}'"
235
+    system "git commit -m \"#{message}\""
236 236
     puts "\n## Pushing generated #{deploy_dir} website"
237 237
     system "git push origin #{deploy_branch}"
238 238
     puts "\n## Github Pages deploy complete"
... ...
@@ -284,7 +284,7 @@ task :config_deploy, :branch do |t, args|
284 284
     system "git clean -fdx"
285 285
     system "echo 'My Octopress Page is coming soon …' > index.html"
286 286
     system "git add ."
287
-    system "git commit -m 'Octopress init'"
287
+    system "git commit -m \"Octopress init\""
288 288
     rakefile = IO.read(__FILE__)
289 289
     rakefile.sub!(/deploy_branch(\s*)=(\s*)(["'])[\w-]*["']/, "deploy_branch\\1=\\2\\3#{args.branch}\\3")
290 290
     rakefile.sub!(/deploy_default(\s*)=(\s*)(["'])[\w-]*["']/, "deploy_default\\1=\\2\\3push\\3")