summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xread_object.pl4
1 files changed, 1 insertions, 3 deletions
diff --git a/read_object.pl b/read_object.pl
index e813cbc..22dd2cf 100755
--- a/read_object.pl
+++ b/read_object.pl
@@ -32,9 +32,7 @@ sub read_object {
sub format_object {
my ($type, $obj) = @_;
- if ($type eq 'commit') {
- $obj;
- } elsif ($type eq 'tag') {
+ if ($type eq 'commit' || $type eq 'tag') {
$obj;
} elsif ($type eq 'tree') {
format_tree($obj)