Permalink
Browse files

[Push] Use git! where possible.

  • Loading branch information...
1 parent d94da4b commit d59059d5d38fe81128e7992257d3b032787ce78f @fabiopelosin fabiopelosin committed Sep 19, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/cocoapods/command/push.rb
@@ -44,6 +44,7 @@ def run
def update_repo
puts "Updating the `#{@repo}' repo\n".yellow unless config.silent
# 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` }
end
@@ -98,9 +99,9 @@ def add_specs_to_repo
FileUtils.mkdir_p(output_path)
FileUtils.cp(Pathname.new(spec.name+'.podspec'), output_path)
Dir.chdir(repo_dir) do
- git("add #{spec.name}")
+ git!("add #{spec.name}")
# 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

0 comments on commit d59059d

Please sign in to comment.