# File lib/chef/provider/git.rb, line 38
      def action_checkout
        if !::File.exist?(@new_resource.destination) || Dir.entries(@new_resource.destination) == ['.','..']
          clone
          checkout
          enable_submodules
          @new_resource.updated_by_last_action(true)
        else
          Chef::Log.info "Taking no action, checkout destination #{@new_resource.destination} already exists or is a non-empty directory"
        end
      end