git/list[1] front-page[2] threads[3] people[4] search[5] about
 

could not verify object error

From
DDDaniel Devlin <devlin-d1@email.ulster.ac.uk>
Date
Feb 12, 2015, 12:32 UTC
Message-ID
<loom.20150212T132927-657@post.gmane.org>
Hi there,

I have been running: repo = Rugged::Config.global type = "commit" tagname = "v99.99.2" username = repo["user.name"] email = repo["user.email"] message = "this is the message for the annotated tag" tag_contents = "object f849f9e28c7f36a826d4b451efb16516c0c3acc2\ntype #{type}\ntag # {tagname}\ntagger #{username} <#{email}> #{Time.new.to_i} +0000\n\n#{message}" #puts tag_contents #puts "****************************" #puts command executecommand = "printf \"#{tag_contents}\" | git mktag"

Open3.popen3(executecommand) do |stdin, stdout, stderr, wait_thr|
  exit_stats = wait_thr.value
  errors = stderr.readlines
  puts "Errors are #{errors}"
  unless exit_stats.success?
    raise Exception, 'There was an error encountered'
  end
  signature_file_sha = stdout.readline.chomp
  puts "signature sha is #{signature_file_sha}"
end

on my local machine and it runs successfully. 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. Any suggestions as to why would be greatly appreciated.

Thanks, Daniel

Next: Jeff King
Message 1 of 2 in “could not verify object error”
  1. Daniel DevlinFeb 12, 2015
  2. Jeff KingFeb 13, 2015

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.