diff --git a/roles/batcave/files/fedmsg-announce-commits.py b/roles/batcave/files/fedmsg-announce-commits.py index 2e55170128..45682945b9 100644 --- a/roles/batcave/files/fedmsg-announce-commits.py +++ b/roles/batcave/files/fedmsg-announce-commits.py @@ -52,7 +52,7 @@ def build_stats(commit): if hasattr(patch, 'new_file_path'): path = patch.new_file_path else: - path = patch.old_file_path + path = patch.delta.new_file_path if hasattr(patch, 'additions'): files[path]['additions'] += patch.additions diff --git a/roles/git/hooks/files/post-receive-fedmsg b/roles/git/hooks/files/post-receive-fedmsg index 95c6769983..57314f00e6 100755 --- a/roles/git/hooks/files/post-receive-fedmsg +++ b/roles/git/hooks/files/post-receive-fedmsg @@ -56,7 +56,7 @@ def build_stats(commit): if hasattr(patch, 'new_file_path'): path = patch.new_file_path else: - path = patch.old_file_path + path = patch.delta.new_file_path if hasattr(patch, 'additions'): files[path]['additions'] += patch.additions