Commit d59059d5 authored by Fabio Pelosin's avatar Fabio Pelosin

[Push] Use git! where possible.

parent d94da4bc
...@@ -44,6 +44,7 @@ module Pod ...@@ -44,6 +44,7 @@ module Pod
def update_repo def update_repo
puts "Updating the `#{@repo}' repo\n".yellow unless config.silent puts "Updating the `#{@repo}' repo\n".yellow unless config.silent
# show the output of git even if not verbose # show the output of git even if not verbose
# TODO: use the `git!' and find a way to show the output in realtime.
Dir.chdir(repo_dir) { puts `git pull 2>&1` } Dir.chdir(repo_dir) { puts `git pull 2>&1` }
end end
...@@ -98,9 +99,9 @@ module Pod ...@@ -98,9 +99,9 @@ module Pod
FileUtils.mkdir_p(output_path) FileUtils.mkdir_p(output_path)
FileUtils.cp(Pathname.new(spec.name+'.podspec'), output_path) FileUtils.cp(Pathname.new(spec.name+'.podspec'), output_path)
Dir.chdir(repo_dir) do Dir.chdir(repo_dir) do
git("add #{spec.name}") git!("add #{spec.name}")
# Bypass the pre-commit hook because we already performed validation # Bypass the pre-commit hook because we already performed validation
git("commit --no-verify -m '#{message}'") git!("commit --no-verify -m '#{message}'")
end end
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