# File lib/chef/provider/git.rb, line 38 def action_checkout assert_target_directory_valid! if target_dir_non_existent_or_empty? clone checkout enable_submodules add_remotes @new_resource.updated_by_last_action(true) else Chef::Log.debug "#{@new_resource} checkout destination #{@new_resource.destination} already exists or is a non-empty directory" end end