lib/grit/git-ruby/git_object.rb in gitlab-grit-2.6.12 vs lib/grit/git-ruby/git_object.rb in gitlab-grit-2.7.0

- old
+ new

@@ -253,10 +253,13 @@ 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 @@ -317,9 +320,12 @@ 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"