Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2009-11-10 23:35:31 +0300
committerJunio C Hamano <gitster@pobox.com>2009-11-10 23:35:31 +0300
commita12e3cf3a2dbe61d2fc68b67d0db7af947795036 (patch)
tree3d18eae82169722c5cc01be06c65b571b99cb88f /gitweb/gitweb.perl
parent38d3d92c75561d1c0877cf06c501efe493ded924 (diff)
parentb9759f0762c17a5b7bc36af98613c67249931330 (diff)
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 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);
}
}