diff --git a/app/views/tree/edit.html.haml b/app/views/tree/edit.html.haml
index d84f542c8499401ebd51adabc5eb96875af03ca9..e1a616ad5645efe3db90f2aaf9c75a5931e40785 100644
--- a/app/views/tree/edit.html.haml
+++ b/app/views/tree/edit.html.haml
@@ -4,7 +4,7 @@
.file_title
%i.icon-file
%span.file_name
- = @tree.path.force_encoding('utf-8')
+ = "#{@tree.path.force_encoding('utf-8')} (#{@ref})"
%span.options
= link_to "cancel editing", project_tree_path(@project, @id), class: "btn very_small"
.file_content.code