diff options
author | Pierre-Yves Chibon <pingou@pingoured.fr> | 2017-05-02 13:37:18 +0200 |
---|---|---|
committer | Pierre-Yves Chibon <pingou@pingoured.fr> | 2017-05-02 13:37:18 +0200 |
commit | 70b6f996986a185b552249489216a16cd8bcad9c (patch) | |
tree | 5e538ea13b7318ad0a37956d32bebefd70bc0149 | |
parent | 45375683fad94164d735458b443de1b9e3706575 (diff) | |
download | ansible-70b6f996986a185b552249489216a16cd8bcad9c.tar.gz ansible-70b6f996986a185b552249489216a16cd8bcad9c.tar.xz ansible-70b6f996986a185b552249489216a16cd8bcad9c.zip |
Missing .delta.
-rw-r--r-- | roles/batcave/files/fedmsg-announce-commits.py | 2 | ||||
-rwxr-xr-x | roles/git/hooks/files/post-receive-fedmsg | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/roles/batcave/files/fedmsg-announce-commits.py b/roles/batcave/files/fedmsg-announce-commits.py index 2e5517012..45682945b 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 95c676998..57314f00e 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 |