Commit b2f67363 authored by Fabio Pelosin's avatar Fabio Pelosin

[Pod::Command::Push] minor fixes

parent 78df2737
...@@ -39,12 +39,12 @@ module Pod ...@@ -39,12 +39,12 @@ 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
Dir.chdir(repo_dir) { puts `git pull` } Dir.chdir(repo_dir) { puts `git pull 2>&1` }
end end
def push_repo def push_repo
puts "\nPushing the `#{@repo}' repo\n".yellow unless config.silent puts "\nPushing the `#{@repo}' repo\n".yellow unless config.silent
Dir.chdir(repo_dir) { puts `git push` } Dir.chdir(repo_dir) { puts `git push 2>&1` }
end end
def repo_dir def repo_dir
...@@ -55,8 +55,8 @@ module Pod ...@@ -55,8 +55,8 @@ module Pod
def check_repo_status def check_repo_status
# TODO: add specs for staged and unstaged files (tested manually) # TODO: add specs for staged and unstaged files (tested manually)
status = Dir.chdir(repo_dir) { `git status --porcelain` } == '' clean = Dir.chdir(repo_dir) { `git status --porcelain 2>&1` } == ''
raise Informative, "[!] `#{@repo}' repo not clean".red unless status raise Informative, "[!] `#{@repo}' repo not clean".red unless clean
end end
def podspec_files def podspec_files
......
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