Infer repo location from url