diff --git a/lib/manage_gitlab_project.py b/lib/manage_gitlab_project.py index edf1d5153360c8caaf0c05d1cc88b90c1cf8cc0d..43409061a009cc99bd8b9aa208a87c4cb0372b67 100755 --- a/lib/manage_gitlab_project.py +++ b/lib/manage_gitlab_project.py @@ -75,9 +75,9 @@ def createproject(pname): else: description=options.desc new_project=git.createProject(pname,description=description,issues_enabled=str(int(options.issues)),wall_enabled=str(int(options.wall)),merge_requests_enabled=str(int(options.merge)),wiki_enabled=str(int(options.wiki)),snippets_enabled=str(int(options.snippets)),public=str(int(options.public))) - new_project=findproject(gitlab_user,pname) - print new_project - new_project=git.moveProject(found_group['id'],new_project['id']) + if gitlab_user != gitlab_namespace: + new_project=findproject(gitlab_user,pname) + new_project=git.moveProject(found_group['id'],new_project['id']) if findproject(gitlab_namespace,pname): return findproject(gitlab_namespace,pname) else: