summaryrefslogtreecommitdiff
path: root/gitweb/gitweb.perl
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2009-11-10 20:35:31 (GMT)
committerJunio C Hamano <gitster@pobox.com>2009-11-10 20:35:31 (GMT)
commita12e3cf3a2dbe61d2fc68b67d0db7af947795036 (patch)
tree3d18eae82169722c5cc01be06c65b571b99cb88f /gitweb/gitweb.perl
parent38d3d92c75561d1c0877cf06c501efe493ded924 (diff)
parentb9759f0762c17a5b7bc36af98613c67249931330 (diff)
downloadgit-a12e3cf3a2dbe61d2fc68b67d0db7af947795036.zip
git-a12e3cf3a2dbe61d2fc68b67d0db7af947795036.tar.gz
git-a12e3cf3a2dbe61d2fc68b67d0db7af947795036.tar.bz2
Merge branch 'pb/maint-gitweb-blob-lineno'
* pb/maint-gitweb-blob-lineno: gitweb: Fix blob linenr links in pathinfo mode
Diffstat (limited to 'gitweb/gitweb.perl')
-rwxr-xr-xgitweb/gitweb.perl3
1 files changed, 2 insertions, 1 deletions
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index e4cbfc3..62325ea 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);
}
}