Update remote tag SHA parsing to handle tags with same name as a branch.