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>
Jakub Narebski committed
Jan 3, 2007 at 20:47 UTC
6e72cf43a7b19bca62cebee5b1e4f43943c3b6fb
1 file changed
+1
-1
gitweb/gitweb.perl
+1
-1
@@ -2274,7 +2274,7 @@ sub git_difftree_body {
2274
my $mode_chnge = "";
2275
if ($diff{'from_mode'} != $diff{'to_mode'}) {
2276
$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) {
2278
$mode_chnge .= " from $from_file_type to $to_file_type";
2279
}
2280
if (($from_mode_oct & 0777) != ($to_mode_oct & 0777)) {