projects
/
gitweb-sgk
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
1bda5b3
)
Supporess suffix ".git" on path breadcrumbs in tree mode.
author
Aaron Taylor
<ataylor@subgeniuskitty.com>
Thu, 5 Nov 2020 06:45:11 +0000
(06:45 +0000)
committer
Aaron Taylor
<ataylor@subgeniuskitty.com>
Thu, 5 Nov 2020 06:45:11 +0000
(06:45 +0000)
gitweb.cgi
patch
|
blob
|
blame
|
history
diff --git
a/gitweb.cgi
b/gitweb.cgi
index
6b5b731
..
6ee17d5
100755
(executable)
--- a/
gitweb.cgi
+++ b/
gitweb.cgi
@@
-4549,8
+4549,10
@@
sub git_print_page_path {
print "<div class=\"page_path\">";
print "<div class=\"page_path\">";
+ my $pretty_project = $project;
+ $pretty_project =~ s/\/\.git$//;
print $cgi->a({-href => href(action=>"tree", hash_base=>$hb),
print $cgi->a({-href => href(action=>"tree", hash_base=>$hb),
- -title => 'tree root'}, to_utf8("[$project]"));
+ -title => 'tree root'}, to_utf8("[$pr
etty_pr
oject]"));
print " / ";
if (defined $name) {
my @dirname = split '/', $name;
print " / ";
if (defined $name) {
my @dirname = split '/', $name;