Commit 8aeca509 authored by Fabio Pelosin's avatar Fabio Pelosin

[ErrorReport] Don't output git error messages.

parent e74c3b01
...@@ -10,7 +10,7 @@ module Pod ...@@ -10,7 +10,7 @@ module Pod
def report(error) def report(error)
return <<-EOS return <<-EOS
#{'――― MARKDOWN TEMPLATE ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――'.reversed} #{'――― MARKDOWN TEMPLATE ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――'.reversed}
### Report ### Report
...@@ -59,14 +59,14 @@ EOS ...@@ -59,14 +59,14 @@ EOS
def markdown_podfile def markdown_podfile
return '' unless Config.instance.project_podfile && Config.instance.project_podfile.exist? return '' unless Config.instance.project_podfile && Config.instance.project_podfile.exist?
<<-EOS <<-EOS
### Podfile ### Podfile
```ruby ```ruby
#{Config.instance.project_podfile.read.strip} #{Config.instance.project_podfile.read.strip}
``` ```
EOS EOS
end end
def error_from_podfile(error) def error_from_podfile(error)
...@@ -89,8 +89,8 @@ EOS ...@@ -89,8 +89,8 @@ EOS
Pod::Source.all.map do |source| Pod::Source.all.map do |source|
repo = source.repo repo = source.repo
Dir.chdir(repo) do Dir.chdir(repo) do
url = `git config --get remote.origin.url`.strip url = `git config --get remote.origin.url 2>&1`.strip
sha = `git rev-parse HEAD`.strip sha = `git rev-parse HEAD 2>&1`.strip
"#{repo.basename} - #{url} @ #{sha}" "#{repo.basename} - #{url} @ #{sha}"
end end
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment