Show More
@@ -201,7 +201,7 b' def post_push(extras):' | |||
|
201 | 201 | audit_logger.store( |
|
202 | 202 | 'user.push', action_data={ |
|
203 | 203 | 'user_agent': extras.user_agent, |
|
204 |
'commit_ids': commit_ids[: |
|
|
204 | 'commit_ids': commit_ids[:400]}, | |
|
205 | 205 | user=audit_user, repo=repo, commit=True) |
|
206 | 206 | |
|
207 | 207 | # Propagate to external components. |
@@ -44,7 +44,7 b' def test_post_push_truncates_commits(use' | |||
|
44 | 44 | hooks_base.post_push(extras) |
|
45 | 45 | |
|
46 | 46 | # Calculate appropriate action string here |
|
47 |
commit_ids = extras.commit_ids[: |
|
|
47 | commit_ids = extras.commit_ids[:400] | |
|
48 | 48 | |
|
49 | 49 | entry = UserLog.query().order_by('-user_log_id').first() |
|
50 | 50 | assert entry.action == 'user.push' |
General Comments 0
You need to be logged in to leave comments.
Login now