From d0898897721b0b10713819275b12d25275c86dab Mon Sep 17 00:00:00 2001 From: Parker Moore Date: Thu, 20 Dec 2012 00:47:38 -0500 Subject: [PATCH] Printing the repo_url when failing. #866 --- Rakefile | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index d045047..65520c4 100644 --- a/Rakefile +++ b/Rakefile @@ -328,7 +328,16 @@ multitask :push do if system "git push origin #{deploy_branch}" puts "\n## GitHub Pages deploy complete" else - raise "\n## Octopress could not push to your repository. Check your internet connection." + remote = `git remote -v` + repo_url = case remote + when /(http[^\s]+)/ + $1 + when /(git@[^\s]+)/ + $1 + else + "" + end + raise "\n## Octopress could not push to #{repo_url}" end end else