diff --git a/roles/git/hooks/files/post-receive-fedora-messaging b/roles/git/hooks/files/post-receive-fedora-messaging index da91ab8a24..0147f7cebb 100644 --- a/roles/git/hooks/files/post-receive-fedora-messaging +++ b/roles/git/hooks/files/post-receive-fedora-messaging @@ -120,7 +120,7 @@ for line in lines: revs = [head.id] def _build_commit(rev): - commit = repo.revparse_single(rev) + commit = repo.revparse_single(rev.hex) # Tags are a little funny, and vary between versions of pygit2, so we'll # just ignore them as far as fedmsg is concerned.