Added a working version of sign in function sign_commit_old() and it is currently the one being called. There is now a seg fault when adding a note around the line  if(get_sha1(cmt_sha, object)) in sign_commit_old()