Commit a7a26ae3 authored by Daniel Stone's avatar Daniel Stone
Browse files

Use case-insensitive namespace search

parent 3ba438ed
......@@ -78,7 +78,7 @@ class Repo:
# Surely there has to be a cleaner way to do this ... ?
namespace = self.url_gitlab.split('/')[:-1]
for ns in self.config.gitlab.namespaces.list(search=namespace[-1]):
if ns.full_path == "/".join(namespace):
if ns.full_path.lower() == "/".join(namespace).lower():
return ns.id
raise Exception("Couldn't find GitLab namespace %s" % 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