Project

General

Profile

Defect #12979 ยป REDMINE_LINK_TO_COMMIT.diff

Danil Tashkinov, 2013-01-25 10:09

View differences:

app/helpers/application_helper.rb
748 748
          when 'commit', 'source', 'export'
749 749
            if project
750 750
              repository = nil
751
              if name =~ %r{^(([a-z0-9\-]+)\|)(.+)$}
751
              if name =~ %r{^(([a-z0-9\-\_]+)\|)(.+)$}
752 752
                repo_prefix, repo_identifier, name = $1, $2, $3
753 753
                repository = project.repositories.detect {|repo| repo.identifier == repo_identifier}
754 754
              else
    (1-1/1)