There are multiple scenarios when script expects to see same branches and commits. E.g. when upstream commits to release branch trigger the build. Reported by Louis Dionne.