aboutsummaryrefslogtreecommitdiff
path: root/gitweb
diff options
context:
space:
mode:
authorJakub Narebski <jnareb@gmail.com>2007-01-03 20:47:24 +0100
committerJunio C Hamano <junkio@cox.net>2007-01-03 12:19:20 -0800
commit6e72cf43a7b19bca62cebee5b1e4f43943c3b6fb (patch)
treed420ec7b8c1e8f1e5c24925abb8e1be6f8b70e16 /gitweb
parent9c9410e115add56bc33a57f16c7e64da2e1fb0ec (diff)
downloadgit-6e72cf43a7b19bca62cebee5b1e4f43943c3b6fb.tar.gz
git-6e72cf43a7b19bca62cebee5b1e4f43943c3b6fb.tar.xz
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>
Diffstat (limited to 'gitweb')
-rwxr-xr-xgitweb/gitweb.perl2
1 files changed, 1 insertions, 1 deletions
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index 7f548347a..05b3876df 100755
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
@@ -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)) {