Return repository if name is not available.

Signed-off-by: crynobone <crynobone@gmail.com>