mirror of
https://git.centos.org/centos/centpkg.git
synced 2025-02-23 08:12:55 +00:00
Treat all slashes the same
Signed-off-by: Troy Dawson <tdawson@redhat.com>
This commit is contained in:
parent
fb42b297a7
commit
75ceb34ee8
1 changed files with 1 additions and 4 deletions
|
@ -282,10 +282,7 @@ class centpkgClient(cliClient):
|
|||
# Since gitlab allows git repos to be checked out with incorrect capitilization
|
||||
# we need to check the spelling when cloning
|
||||
gl = gitlab.Gitlab(_DEFAULT_API_BASE_URL)
|
||||
if "modules/" in self.args.repo[0]:
|
||||
project_name_with_namespace = "redhat/centos-stream/"+self.args.repo[0]
|
||||
short_name=self.args.repo[0].split("/")[1]
|
||||
if "rpms/" in self.args.repo[0]:
|
||||
if "/" in self.args.repo[0]:
|
||||
project_name_with_namespace = "redhat/centos-stream/"+self.args.repo[0]
|
||||
short_name=self.args.repo[0].split("/")[1]
|
||||
else:
|
||||
|
|
Loading…
Add table
Reference in a new issue