Skip to content

Commit

Permalink
Fix update_commit_info hook spec.
Browse files Browse the repository at this point in the history
  • Loading branch information
drebs committed Apr 5, 2017
1 parent 5a42b2d commit 9be023a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pytest_benchmark/hookspec.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@ def pytest_benchmark_generate_commit_info(config):
pass


def pytest_benchmark_update_commit_info(config, info):
def pytest_benchmark_update_commit_info(config, commit_info):
"""
To add something into the commit_info, like the commit message do something like this:
.. sourcecode:: python
def pytest_benchmark_update_commit_info(config, info):
info['message'] = subprocess.check_output(['git', 'log', '-1', '--pretty=%B']).strip()
def pytest_benchmark_update_commit_info(config, commit_info):
commit_info['message'] = subprocess.check_output(['git', 'log', '-1', '--pretty=%B']).strip()
"""
pass

Expand Down

0 comments on commit 9be023a

Please sign in to comment.