rtyley / bfg-repo-cleaner

Removes large or troublesome blobs like git-filter-branch does, but faster. And written in Scala
https://rtyley.github.io/bfg-repo-cleaner/
GNU General Public License v3.0
11.11k stars 549 forks source link

Doubled number of contributions after using #263

Closed eshlykov closed 6 years ago

eshlykov commented 6 years ago

After cleaning a repo, on profile page the number of some contributions is doubled.

My MWE: mwe-doubled-contributions (removed).

You can see 3 commits only, but my profile shows 5 commits. image image

I suppose that commits which "contain" a removed file (in my example, LICENSE), are counted twice after using BFG-Repo-Cleaner.

javabrett commented 6 years ago

This looks like an after-effect of how GIthub creates or caches or updates its commit/contribution statistic, perhaps before your repo has a gc run on it. Sure BFG created the rewritten history, but it can't control how Github calculates the stats.

Some views already show the correct commit count of 3. It would be interesting to see whether Github eventually updates to correct contribution stats.

Not a BFG issue that I can see.

eshlykov commented 6 years ago

I've wrote to GitHub Support, and they just rebuilt the contribution data for my account. Also I found out this problem occurs even after hard reset and force push.

So it's definitely not a BFG issue.