Commit 6d79bcd3 authored by Fabio Pelosin's avatar Fabio Pelosin

[Repo] Update only git repositories.

parent aa887ea0
...@@ -54,7 +54,14 @@ module Pod ...@@ -54,7 +54,14 @@ module Pod
dirs = @name ? [dir] : config.repos_dir.children.select {|c| c.directory?} dirs = @name ? [dir] : config.repos_dir.children.select {|c| c.directory?}
dirs.each do |dir| dirs.each do |dir|
print_subtitle "Updating spec repo `#{dir.basename}'" print_subtitle "Updating spec repo `#{dir.basename}'"
Dir.chdir(dir) { git("pull") } Dir.chdir(dir) do
`git rev-parse >/dev/null 2>&1`
if $?.exitstatus.zero?
git("pull")
else
puts(" Not a git repository") if config.verbose?
end
end
check_versions(dir) check_versions(dir)
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