lib/grit/git-ruby/git_object.rb in gitlab-grit-2.6.10 vs lib/grit/git-ruby/git_object.rb in gitlab-grit-2.6.11
- old
+ new
@@ -253,13 +253,10 @@
parent.push(value)
when "author"
author = UserInfo.new(value)
when "committer"
committer = UserInfo.new(value)
- else
- warn "unknown header '%s' in commit %s" % \
- [key, rawobject.sha1.unpack("H*")[0]]
end
end
if not tree && author && committer
raise RuntimeError, "incomplete raw commit object"
end
@@ -320,12 +317,9 @@
type = value.to_sym
when "tag"
tag = value
when "tagger"
tagger = UserInfo.new(value)
- else
- warn "unknown header '%s' in tag" % \
- [key, rawobject.sha1.unpack("H*")[0]]
end
end
if not object && type && tag && tagger
raise RuntimeError, "incomplete raw tag object"