gitweb: Fix bug in git_difftree_body (was '!=' instead of 'ne')
authorJakub Narebski <jnareb@gmail.com>
Wed, 3 Jan 2007 19:47:24 +0000 (20:47 +0100)
committerJunio C Hamano <junkio@cox.net>
Wed, 3 Jan 2007 20:19:20 +0000 (12:19 -0800)
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>
gitweb/gitweb.perl

index 7f548347a4e8dfcfdaf8f00efee6f2c5eb302ed9..05b3876df3ffba916058f1841fe2f2b8f2b1a0fc 100755 (executable)
@@ -2274,7 +2274,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)) {