mirror of
https://github.com/moparisthebest/android.moparisthebest.org
synced 2025-01-14 07:08:01 -05:00
Printing the repo_url when failing. #866
This commit is contained in:
parent
51fb2bcc5a
commit
d089889772
11
Rakefile
11
Rakefile
@ -328,7 +328,16 @@ multitask :push do
|
|||||||
if system "git push origin #{deploy_branch}"
|
if system "git push origin #{deploy_branch}"
|
||||||
puts "\n## GitHub Pages deploy complete"
|
puts "\n## GitHub Pages deploy complete"
|
||||||
else
|
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
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user