Commit 57f19baa authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

accept upper case in slugs

parent 9966ce6e
Pipeline #14257 passed with stage
in 3 minutes
......@@ -1102,7 +1102,7 @@ def update_gitlab(forge, data):
'main_forge': forge,
'public': public
})
namespace, _ = Namespace.objects.get_or_create(slug=data['namespace']['path'],
namespace, _ = Namespace.objects.get_or_create(slug__iexact=data['namespace']['path'],
defaults={'name': data['namespace']['name']})
repo, _ = Repo.objects.get_or_create(forge=forge,
namespace=namespace,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment