summaryrefslogtreecommitdiff
path: root/gitweb
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2009-11-10 12:35:31 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2009-11-10 12:35:31 -0800
commita12e3cf3a2dbe61d2fc68b67d0db7af947795036 (patch)
tree3d18eae82169722c5cc01be06c65b571b99cb88f /gitweb
parentMerge branch 'tr/describe-advice' (diff)
parentgitweb: Fix blob linenr links in pathinfo mode (diff)
downloadtgif-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-xgitweb/gitweb.perl3
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);
}
}