Skip to content
Browse files

tag.target_type returns a symbol, not string.

  • Loading branch information...
1 parent cb5e044 commit 79f0011c087d05da40e3ab3b1f15b6bc362c402a @DawidJanczak DawidJanczak committed Mar 23, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 README.md
View
2 README.md
@@ -195,7 +195,7 @@ tag = repo.lookup(tag_sha)
object = tag.target
sha = tag.target.oid
-str = tag.target_type # "commit", "tag", "blob"
+str = tag.target_type # :commit, :tag, :blob
str = tag.name # "v1.0"
str = tag.message
person = tag.tagger

0 comments on commit 79f0011

Please sign in to comment.
Something went wrong with that request. Please try again.