Project

General

Profile

Defect #8857 » Alias-the-revision-and-scmid-properties-for-Git-Revi.patch

Fixes revision lookups for Git during changeset processing - Jeremy Bopp, 2011-12-08 17:06

View differences:

lib/redmine/scm/adapters/git_adapter.rb
358 358
        end
359 359

  
360 360
        class Revision < Redmine::Scm::Adapters::Revision
361
          def initialize(attributes={})
362
            super
363
            self.revision = attributes[:scmid]
364
          end
365

  
366
          # Returns the scmid.
367
          alias_method :revision, :scmid
368
          # Sets the scmid.
369
          alias_method :revision=, :scmid=
370

  
361 371
          # Returns the readable identifier
362 372
          def format_identifier
363 373
            identifier[0,8]
(3-3/8)