Fix issue with multiple configured branches having the same git url but different tag or branch id.