Enable output stream during repo update.

    - Override update_git_repo method of Source class in SourcesManager, and uses Executable instead of backticks. This provides streaming command output to STDOUT.
parent 8622e042
......@@ -531,4 +531,21 @@ module Pod
end
end
end
class Source
extend Executable
executable :git
def update_git_repo(show_output = false)
begin
output = git! %w(pull --ff-only)
UI.puts output if show_output
rescue
UI.warn 'CocoaPods was not able to update the ' \
"`#{name}` repo. If this is an unexpected issue " \
'and persists you can inspect it running ' \
'`pod repo update --verbose`'
end
end
end
end
\ No newline at end of file
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