Skip to content

Commit 6e72cf4

Browse files
jnarebJunio C Hamano
authored andcommitted
gitweb: Fix bug in git_difftree_body (was '!=' instead of 'ne')
Fix bug in git_difftree_body subroutine; it was used '!=' comparison operator for strings (file type) instead of correct 'ne'. Signed-off-by: Jakub Narebski <jnareb@gmail.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
1 parent 9c9410e commit 6e72cf4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gitweb/gitweb.perl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2274,7 +2274,7 @@ sub git_difftree_body {
22742274
my $mode_chnge = "";
22752275
if ($diff{'from_mode'} != $diff{'to_mode'}) {
22762276
$mode_chnge = "<span class=\"file_status mode_chnge\">[changed";
2277-
if ($from_file_type != $to_file_type) {
2277+
if ($from_file_type ne $to_file_type) {
22782278
$mode_chnge .= " from $from_file_type to $to_file_type";
22792279
}
22802280
if (($from_mode_oct & 0777) != ($to_mode_oct & 0777)) {

0 commit comments

Comments
 (0)