summaryrefslogtreecommitdiff
path: root/app/helpers/gitlab_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/helpers/gitlab_helper.rb')
-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