Activity log show wrong number of commits per push
Summary
When consulting the activity log, pushes with two or more commits show one commit hash and the text ... and X more commits
shows X
as one less commit. For example if there are 6 commits only one commit is shown on the activity log and the text says ... and 4 more commits
. The X
value is wrong. IIRC previous version showed two or three commits on the activity log.
Steps to reproduce
- Do a single push with multiple commits, say 6.
- Visit the activity log and check the number of commits shown there and how many are counted on the message
... and X more commits
. It will only show 1 commit andX
will be 4
Example Project
See any multiple commit push on https://gitlab.com/gitlab-org/gitlab-ce/activity
What is the current bug behavior?
Multiple commits push entries show always only one commit and the ... and X more commits
message show an incorrect value for X
What is the expected correct behavior?
Multiple commits push entries should show a few commits (lets for example say 3) and the ... and X more commits
message should have X = number_of_commits - 3
Relevant logs and/or screenshots
This push on https://gitlab.com/gitlab-org/gitlab-ce/activity contains 5 commits, it only shows one and say there are 3 more
Output of checks
This bug happens on GitLab.com