Jakub Narebski wrote: I'm sorry, there should be + my $ftype = "blob"; > if (!defined $hash) { > $hash = git_get_hash_by_path($hash_base, $file_name, "blob") > or die_error(404, "Error looking up file"); > + } else { > + $ftype = git_get_type($hash); > + if ($ftype !~ "blob") { > + die_error(400, "Object is not a blob"); > + } -- Jakub Narebski Warsaw, Poland ShadeHawk on #git -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html