Commit 90174caa authored by Fabio Pelosin's avatar Fabio Pelosin

[Repo] Use raising bang variant for git operations.

parent fe403b85
...@@ -7,6 +7,8 @@ ...@@ -7,6 +7,8 @@
[#448](https://github.com/CocoaPods/CocoaPods/issues/448) [#448](https://github.com/CocoaPods/CocoaPods/issues/448)
- Added support for extracting `.tar.bz2` files - Added support for extracting `.tar.bz2` files
[#522](https://github.com/CocoaPods/CocoaPods/issues/522) [#522](https://github.com/CocoaPods/CocoaPods/issues/522)
- Improved feedback for errors of repo subcommand.
[#505](https://github.com/CocoaPods/CocoaPods/issues/505)
###### Bug fixes ###### Bug fixes
- In certain conditions pod setup would execute twice. - In certain conditions pod setup would execute twice.
......
...@@ -58,8 +58,8 @@ module Pod ...@@ -58,8 +58,8 @@ module Pod
def add def add
print_subtitle "Cloning spec repo `#{@name}' from `#{@url}'#{" (branch `#{@branch}')" if @branch}" print_subtitle "Cloning spec repo `#{@name}' from `#{@url}'#{" (branch `#{@branch}')" if @branch}"
config.repos_dir.mkpath config.repos_dir.mkpath
Dir.chdir(config.repos_dir) { git("clone '#{@url}' #{@name}") } Dir.chdir(config.repos_dir) { git!("clone '#{@url}' #{@name}") }
Dir.chdir(dir) { git("checkout #{@branch}") } if @branch Dir.chdir(dir) { git!("checkout #{@branch}") } if @branch
check_versions(dir) check_versions(dir)
end end
...@@ -70,7 +70,7 @@ module Pod ...@@ -70,7 +70,7 @@ module Pod
Dir.chdir(dir) do Dir.chdir(dir) do
`git rev-parse >/dev/null 2>&1` `git rev-parse >/dev/null 2>&1`
if $?.exitstatus.zero? if $?.exitstatus.zero?
git("pull") git!("pull")
else else
puts(" Not a git repository") if config.verbose? puts(" Not a git repository") if config.verbose?
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