diff options
author | Junio C Hamano <gitster@pobox.com> | 2009-11-15 23:07:38 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-11-15 23:07:38 -0800 |
commit | 3ad12436a0d21f3379d936027caeca6ac73f24fa (patch) | |
tree | 984749df8f89f15352781f8668c3995282ee6d54 /gitweb | |
parent | 958742ba43a0e3847cc7095869f0d96febe47132 (diff) | |
parent | b9759f0762c17a5b7bc36af98613c67249931330 (diff) | |
download | git-3ad12436a0d21f3379d936027caeca6ac73f24fa.tar.gz |
Merge branch 'pb/maint-gitweb-blob-lineno' into maint
* pb/maint-gitweb-blob-lineno:
gitweb: Fix blob linenr links in pathinfo mode
Diffstat (limited to 'gitweb')
-rwxr-xr-x | gitweb/gitweb.perl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl index 59dca7d3ad..c77cd0341d 100755 --- a/gitweb/gitweb.perl +++ b/gitweb/gitweb.perl @@ -5064,7 +5064,8 @@ sub git_blob { chomp $line; $nr++; $line = untabify($line); - printf "<div class=\"pre\"><a id=\"l%i\" href=\"#l%i\" class=\"linenr\">%4i</a> %s</div>\n", + printf "<div class=\"pre\"><a id=\"l%i\" href=\"" . href(-replay => 1) + . "#l%i\" class=\"linenr\">%4i</a> %s</div>\n", $nr, $nr, $nr, esc_html($line, -nbsp=>1); } } |