# File lib/chef/provider/git.rb, line 38
      def action_checkout
        assert_target_directory_valid!

        if target_dir_non_existant_or_empty?
          clone
          checkout
          enable_submodules
          @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