We have OnDemand JIRA and use BitBucket.
Occasionally, we perform a git rebase to remove incorrect commits. Especially ones that forget to add the issue tag to the commit message.
Because of this, other commits that were modified as part of the rebase show up as duplicates attached to their respective issues.
Eventually, BitBucket prunes the orphaned commits. But JIRA does not remove the links from the issues.
At this point, JIRA has commit links that show up as 404s if you click on them.
Re-indexing does not appear to resolve this.
Is there any other steps we can take to remove this clutter?