]> Lady’s Gitweb - Gitweb/commitdiff
gitweb: Fix bug in git_difftree_body (was '!=' instead of 'ne')
authorJakub Narebski <redacted>
Wed, 3 Jan 2007 19:47:24 +0000 (20:47 +0100)
committerLady <redacted>
Mon, 6 Apr 2026 04:07:11 +0000 (00:07 -0400)
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 <redacted>
Signed-off-by: Junio C Hamano <redacted>
gitweb.perl

index 766aa5581f8d835c9e9cc629e1d83b7f02a73118b4acf3bc2a32db59608c489d..c12a6ce6c180341cc709a7b13023f4272c32758549c2a5186fb452d8dba5bb0e 100755 (executable)
@@ -2275,7 +2275,7 @@ sub git_difftree_body {
                        my $mode_chnge = "";
                        if ($diff{'from_mode'} != $diff{'to_mode'}) {
                                $mode_chnge = "<span class=\"file_status mode_chnge\">[changed";
-                               if ($from_file_type != $to_file_type) {
+                               if ($from_file_type ne $to_file_type) {
                                        $mode_chnge .= " from $from_file_type to $to_file_type";
                                }
                                if (($from_mode_oct & 0777) != ($to_mode_oct & 0777)) {
This page took 0.393186 seconds and 4 git commands to generate.