summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2009-11-15 23:07:38 -0800
committerJunio C Hamano <gitster@pobox.com>2009-11-15 23:07:38 -0800
commit3ad12436a0d21f3379d936027caeca6ac73f24fa (patch)
tree984749df8f89f15352781f8668c3995282ee6d54
parent958742ba43a0e3847cc7095869f0d96febe47132 (diff)
parentb9759f0762c17a5b7bc36af98613c67249931330 (diff)
downloadgit-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
-rwxr-xr-xgitweb/gitweb.perl3
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);
}
}