Refactored repo path calculation eliminates duplicated code and aligns the matching logic (with respect to url and path) with the documentation. Signed-off-by: Silvano Cirujano Cuesta <silvano.cirujano-cuesta@siemens.com> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>