Repo commit count is wrong after force push (OD-1133)
Ben Cooper opened 3 years ago

If I have a repository with 10 commits in, and rebase a previous commit then force push the updated commits to the remote branch, the commit count on the repository listing will show >10 (e.g. 15).

I wonder if the commit count being incremented on every push rather than being refreshed from the repository?

  • Robin Shen commented 3 years ago

    Commit count is calculated by summing all encountered commits and it will include rebased commits.

    Refreshing this count for each rebase can be time consuming. In case commit count gets inaccurate after some rebases, one can delete the commit info cache (site/projects/<project id>/info/commit) to force a refresh upon next restart.

  • Robin Shen changed state to 'Closed' 3 years ago
    Previous Value Current Value
    Open
    Closed
issue 1/1
Type
Bug
Priority
Normal
Assignee
Affected Versions
Not Found
Issue Votes (0)
Watchers (4)
Reference
OD-1133
Please wait...
Connection lost or session expired, reload to recover
Page is in error, reload to recover