summaryrefslogtreecommitdiff
path: root/app/views/projects/tree/_submodule_item.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/projects/tree/_submodule_item.html.haml')
-rw-r--r--app/views/projects/tree/_submodule_item.html.haml4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/projects/tree/_submodule_item.html.haml b/app/views/projects/tree/_submodule_item.html.haml
index a8ec9df2c8f..46e9be4af83 100644
--- a/app/views/projects/tree/_submodule_item.html.haml
+++ b/app/views/projects/tree/_submodule_item.html.haml
@@ -7,8 +7,8 @@
@
%span.monospace
- if commit.nil?
- #{submodule_item.id[0..10]}
+ #{truncate_sha(submodule_item.id)}
- else
- = link_to "#{submodule_item.id[0..10]}", commit
+ = link_to "#{truncate_sha(submodule_item.id)}", commit
%td
%td.hidden-xs