From 7133dd41c0bb9128784e6f9369b743c864530953 Mon Sep 17 00:00:00 2001 From: Sam Gleske <sag47@drexel.edu> Date: Mon, 16 Sep 2013 12:16:36 -0400 Subject: [PATCH] Move project bug in manage py There's no need to move the project to a group if the user is creating projects in their own namespace. --- lib/manage_gitlab_project.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/manage_gitlab_project.py b/lib/manage_gitlab_project.py index edf1d51..4340906 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: -- GitLab