I've ran BFG on several of my repos (see r****s, and r****s-t***s) using BFG (deleting large blobs and adding files to LFS).
After force-pushing to bitbucket, my commit previews (e.g. on the "Commits" section) now displays texts from all commit message lines, not just the subject line.
This, together with the fact that BFG has added newlines with "Former-commit-id" to all commits, makes the whole section unreadable and spammy.
Example:
It doesn't seem to be an issue with BFG, which has correctly added the extra text in the body, after a line break:
I can run a regex with git filter-branch to remove the former-commit-id texts. But several of my commits had messages beyond the first line, which now also display like this, so this would only slightly mitigate the issue, not fix it.
Hi @Glecko
Welcome to the community.
This is currently an expected outcome when using the BFG tool where it adds the former commit to the existing commit after the re-write for tracking purposes. This is a known behaviour of the tool.
Indeed, an alternative is to use git filter-branch you mentioned. - https://github.com/rtyley/bfg-repo-cleaner/issues/102
Regards,
Mark C
Hey @Mark C
I am aware this is an expected outcome of BFG (mentioned in the original post).
What I don't think is an expected outcome is the Bitbucket web UI ignoring line breaks when determining a commit list preview message.
And as mentioned in the original post, git filter-branch is not a valid solution for me.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.