# File lib/chef/provider/git.rb, line 152
      def remote_resolve_reference
        command = scm('ls-remote', @new_resource.repository, @new_resource.revision)
        Chef::Log.debug("Executing #{command}")
        begin
          status, result, error_message = output_of_command(command, run_options)
          handle_command_failures(status, "STDOUT: #{result}\nSTDERR: #{error_message}")
        rescue RuntimeError => e
          raise RuntimeError, e.message + "\n" + "Could not access the remote Git repository. "+
                "If this is a private repository, please verify that the deploy key for your application " +
                "has been added to your remote Git account."
        end
        result
      end