opengrok
opengrok copied to clipboard
Duplicate history entries due to merge commits
Describe the bug Clicking on History for a file shows duplicate commit entries (same hash) in a git based repository. This appears to be tied to merge commits from one branch (mainline) into the development branch that contains the actual commit. Each time the mainline is merged into the dev branch it results in another entry in OG history. This problem has been around for awhile. I believe it started after the switch to using JGit.
OpenGrok 1.7.35 (Docker)
Screenshots
So, whenever a merge commit is done, even files that were not changed in that commit receive the extra entry in the history ?
I have been seeing this (duplicate history) too for the past few releases. My workaround is to wipe the index/history/etc for the affected repo and reindex. I did not dig much further, but since you mention merge commits cause it I will keep an eye out.