i18n: git-clone basic messages
[gitweb.git] / gitweb / gitweb.perl
index b02372c3e23a41686f8dceb058fbc384f519bb78..1b9369d1a72f625bcb66e021bdab8559930cb0eb 100755 (executable)
@@ -4412,7 +4412,7 @@ sub git_difftree_body {
                }
                if ($diff->{'from_mode'} ne ('0' x 6)) {
                        $from_mode_oct = oct $diff->{'from_mode'};
-                       if (S_ISREG($to_mode_oct)) { # only for regular file
+                       if (S_ISREG($from_mode_oct)) { # only for regular file
                                $from_mode_str = sprintf("%04o", $from_mode_oct & 0777); # permission bits
                        }
                        $from_file_type = file_type($diff->{'from_mode'});