This allows the caller to differentiate between "no repo found" and "result points to repo". Default behavior remain unchanged (return provided path itself if no repo is found). Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>