From 18a674d74dd5c7f04b25fc253ecfd91ea79297d4 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Thu, 11 Jun 2020 21:13:25 +0200 Subject: [PATCH] git/hook: parse the revision/hash rather than the Oid object Fixes https://pagure.io/fedora-infrastructure/issue/9016 Signed-off-by: Pierre-Yves Chibon --- roles/git/hooks/files/post-receive-fedora-messaging | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.