diff options
author | Junio C Hamano <gitster@pobox.com> | 2009-11-10 12:35:31 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-11-10 12:35:31 -0800 |
commit | a12e3cf3a2dbe61d2fc68b67d0db7af947795036 (patch) | |
tree | 3d18eae82169722c5cc01be06c65b571b99cb88f /gitweb | |
parent | Merge branch 'tr/describe-advice' (diff) | |
parent | gitweb: Fix blob linenr links in pathinfo mode (diff) | |
download | tgif-a12e3cf3a2dbe61d2fc68b67d0db7af947795036.tar.xz |
Merge branch 'pb/maint-gitweb-blob-lineno'
* 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 e4cbfc35a7..62325ea877 100755 --- a/gitweb/gitweb.perl +++ b/gitweb/gitweb.perl @@ -5127,7 +5127,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); } } |