aboutsummaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorFrederic Hemberger <mail@frederic-hemberger.de>2011-09-18 14:07:43 +0200
committerFrederic Hemberger <mail@frederic-hemberger.de>2011-09-18 14:07:43 +0200
commit31adeee1dfda4907cadebceda5d59ac0845624a1 (patch)
treedc6c3a289459542865a3552bba2f2d9cb865565c /Rakefile
parent347e855ddc05c4da2f0530db436a9097d8ddbaea (diff)
downloadmy_new_personal_website-31adeee1dfda4907cadebceda5d59ac0845624a1.tar.xz
my_new_personal_website-31adeee1dfda4907cadebceda5d59ac0845624a1.zip
Wraps git commit message in double quotes, fixes #139
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Rakefile b/Rakefile
index 80d027d5..df96f92b 100644
--- a/Rakefile
+++ b/Rakefile
@@ -232,7 +232,7 @@ multitask :push do
system "git add -u"
puts "\n## Commiting: Site updated at #{Time.now.utc}"
message = "Site updated at #{Time.now.utc}"
- system "git commit -m '#{message}'"
+ system "git commit -m \"#{message}\""
puts "\n## Pushing generated #{deploy_dir} website"
system "git push origin #{deploy_branch}"
puts "\n## Github Pages deploy complete"
@@ -284,7 +284,7 @@ task :config_deploy, :branch do |t, args|
system "git clean -fdx"
system "echo 'My Octopress Page is coming soon &hellip;' > index.html"
system "git add ."
- system "git commit -m 'Octopress init'"
+ system "git commit -m \"Octopress init\""
rakefile = IO.read(__FILE__)
rakefile.sub!(/deploy_branch(\s*)=(\s*)(["'])[\w-]*["']/, "deploy_branch\\1=\\2\\3#{args.branch}\\3")
rakefile.sub!(/deploy_default(\s*)=(\s*)(["'])[\w-]*["']/, "deploy_default\\1=\\2\\3push\\3")