fix repo branches and tags lookup