Commit 52bd3e46 authored by Robert Luberda's avatar Robert Luberda Committed by Junio C Hamano

gitweb: correctly store previous rev in javascript-actions mode

Without this change, the setting

 $feature{'javascript-actions'}{'default'} = [1];

in gitweb.conf breaks gitweb's blame page: clicking on line numbers
displayed in the second column on the page has no effect.

For comparison, with javascript-actions disabled, clicking on line
numbers loads the previous version of the line.

Signed-off-by: default avatarJonathan Nieder <>
Signed-off-by: default avatarRobert Luberda <>
Acked-by: Jakub Narębski's avatarJakub Narębski <>
Signed-off-by: default avatarJunio C Hamano <>
parent 5fa0f523
......@@ -484,7 +484,7 @@ function processBlameLines(lines) {
case 'previous':
// store only first 'previous' header
if (!'previous' in curCommit) {
if (!('previous' in curCommit)) {
var parts = data.split(' ', 2);
curCommit.previous = parts[0];
curCommit.file_parent = unquote(parts[1]);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment