# File lib/bundler/source.rb, line 338
      def lock
        @ref = @options["ref"] = revision
        checkout
      end