{"thread":{"id":"38559","subject":"could not verify object error","startedAt":"2015-02-12T12:32:45Z","lastAt":"2015-02-13T09:56:31Z","messageCount":2,"participants":["Daniel Devlin","Jeff King"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"255987","messageId":"loom.20150212T132927-657@post.gmane.org","threadId":"38559","inReplyTo":null,"subject":"could not verify object error","fromName":"Daniel Devlin","fromEmail":"devlin-d1@email.ulster.ac.uk","sentAt":"2015-02-12T12:32:45Z","receivedAt":"2015-02-12T12:32:45Z","isPatch":false,"sender":{"key":"devlin-d1@email.ulster.ac.uk","avatar":null},"body":"Hi there,\n\nI have been running:\nrepo = Rugged::Config.global\ntype = \"commit\"\ntagname = \"v99.99.2\"\nusername = repo[\"user.name\"]\nemail = repo[\"user.email\"]\nmessage = \"this is the message for the annotated tag\"\ntag_contents = \n\"object f849f9e28c7f36a826d4b451efb16516c0c3acc2\\ntype #{type}\\ntag #\n{tagname}\\ntagger #{username} <#{email}> #{Time.new.to_i} +0000\\n\\n#{message}\"\n#puts tag_contents\n#puts \"****************************\"\n#puts command\nexecutecommand = \"printf \\\"#{tag_contents}\\\" | git mktag\"\n\nOpen3.popen3(executecommand) do |stdin, stdout, stderr, wait_thr|\n\n  exit_stats = wait_thr.value\n  errors = stderr.readlines\n  puts \"Errors are #{errors}\"\n  unless exit_stats.success?\n    raise Exception, 'There was an error encountered'\n  end\n  signature_file_sha = stdout.readline.chomp\n  puts \"signature sha is #{signature_file_sha}\"\nend\n\non my local machine and it runs successfully. \nI have tried to run it on a vm with git 2.0.4 but keep \ngetting char 7 could not verify object error message. \nAny suggestions as to why would be greatly \nappreciated.\n\nThanks,\nDaniel\n"},{"id":"256055","messageId":"20150213095630.GA32009@peff.net","threadId":"38559","inReplyTo":"loom.20150212T132927-657@post.gmane.org","subject":"Re: could not verify object error","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2015-02-13T09:56:31Z","receivedAt":"2015-02-13T09:56:31Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Thu, Feb 12, 2015 at 12:32:45PM +0000, Daniel Devlin wrote:\n\n> tag_contents = \n> \"object f849f9e28c7f36a826d4b451efb16516c0c3acc2\\ntype #{type}\\ntag #\n> {tagname}\\ntagger #{username} <#{email}> #{Time.new.to_i} +0000\\n\\n#{message}\"\n> [...]\n> executecommand = \"printf \\\"#{tag_contents}\\\" | git mktag\"\n> [...]\n> I have tried to run it on a vm with git 2.0.4 but keep \n> getting char 7 could not verify object error message. \n\nDo you have object f849f9e28c... in the repository where you are running\nmktag? If so, is it a commit object, as you are putting in the type\nfield? What does:\n\n  git cat-file -t f849f9e28c7f36a826d4b451efb16516c0c3acc2\n\nshow?\n\n-Peff\n"}]}