Subject: Re: could not verify object error

From: Jeff King <[email-masked]>
Date: Fri, 13 Feb 2015 04:56:31 -0500

On Thu, Feb 12, 2015 at 12:32:45PM +0000, Daniel Devlin wrote:

> tag_contents = 
> "object f849f9e28c7f36a826d4b451efb16516c0c3acc2\ntype #{type}\ntag #
> {tagname}\ntagger #{username} <#{email}> #{Time.new.to_i} +0000\n\n#{message}"
> [...]
> executecommand = "printf \"#{tag_contents}\" | git mktag"
> [...]
> I have tried to run it on a vm with git 2.0.4 but keep 
> getting char 7 could not verify object error message. 

Do you have object f849f9e28c... in the repository where you are running
mktag? If so, is it a commit object, as you are putting in the type
field? What does:

  git cat-file -t f849f9e28c7f36a826d4b451efb16516c0c3acc2

show?

-Peff