Subject: [PATCH 2/2] gitweb: Show trailing slash when listing tree entry in tree listing

From: Petr Baudis <[email-masked]>
Date: Sat, 07 Oct 2006 16:10:43 +0200

Signed-off-by: Petr Baudis <[email-masked]>
---

 gitweb/gitweb.perl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index 096a01b..c3d09a2 100755
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
@@ -1791,7 +1791,7 @@ sub git_print_tree_entry {
 		print "<td class=\"list\">";
 		print $cgi->a({-href => href(action=>"tree", hash=>$t->{'hash'},
 		                             file_name=>"$basedir$t->{'name'}", %base_key)},
-		              esc_html($t->{'name'}));
+		              esc_html($t->{'name'} . '/'));
 		print "</td>\n";
 		print "<td class=\"link\">";
 		if (defined $hash_base) {