Refresh commit count after repository head changes Closes #59346 See merge request gitlab-org/gitlab-ce!26473