Fix cache for commit status in commits list to respect branches
Closes #24324 (closed)
This will create a new commit in order to revert the existing changes.