Skip to content

Commit

Permalink
Fixed for 1.9 syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
keita committed Sep 12, 2008
1 parent 1adc5b8 commit 116d177
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/git/object.rb
Expand Up @@ -284,13 +284,13 @@ def new(base, objectish, type = nil, is_tag = false)

klass =
case type
when /blob/: Blob
when /commit/: Commit
when /tree/: Tree
when /blob/; Blob
when /commit/; Commit
when /tree/; Tree
end
klass::new(base, objectish)
end
end

end
end
end

0 comments on commit 116d177

Please sign in to comment.