From 66c9ede87e1fb6e216ca3ecba192ae1f4ddf3362 Mon Sep 17 00:00:00 2001 From: Parker Moore Date: Wed, 19 Dec 2012 22:45:11 -0500 Subject: [PATCH] Checking to see if 'git push' worked in deploy. #866. --- Rakefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Rakefile b/Rakefile index 0e11e5a..bb912d9 100644 --- a/Rakefile +++ b/Rakefile @@ -325,8 +325,11 @@ multitask :push do puts "\n## Commiting: #{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" + if system "git push origin #{deploy_branch}" + puts "\n## GitHub Pages deploy complete" + else + puts "\n## Octopress could not push to your repository. Check your internet connection." + end end else puts "This project isn't configured for deploying to GitHub Pages\nPlease run `rake setup_github_pages[your-deployment-repo-url]`."