summaryrefslogtreecommitdiff
path: root/app/helpers
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-11-06 13:32:40 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-11-06 13:32:40 +0200
commitbd144a604f3c72552cd112fdffc3a402e69b628c (patch)
tree406390779e73fd20ef886915d6a43030cb906d3f /app/helpers
parent1cc5704a00784f71ec2f4392160479fb3044f4d2 (diff)
downloadgitlab-ci-bd144a604f3c72552cd112fdffc3a402e69b628c.tar.gz
Refactor commit sha
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/gitlab_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/gitlab_helper.rb b/app/helpers/gitlab_helper.rb
index a5d3192..7910a04 100644
--- a/app/helpers/gitlab_helper.rb
+++ b/app/helpers/gitlab_helper.rb
@@ -15,6 +15,6 @@ module GitlabHelper
def gitlab_commit_link project, sha
gitlab_url = project.gitlab_url.dup
gitlab_url << "/commit/#{sha}"
- link_to sha[0...10], gitlab_url
+ link_to Commit.truncate_sha(sha), gitlab_url
end
end