Fix repo connection contest of the two repositories with the same storage type