# File lib/chef/provider/git.rb, line 102 def add_remotes if (@new_resource.additional_remotes.length > 0) @new_resource.additional_remotes.each_pair do |remote_name, remote_url| Chef::Log.info "#{@new_resource} adding git remote #{remote_name} = #{remote_url}" command = "git remote add #{remote_name} #{remote_url}" if shell_out(command, run_options(:cwd => @new_resource.destination, :command_log_level => :info)).exitstatus != 0 @new_resource.updated_by_last_action(true) end end end end