You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by tv...@apache.org on 2013/08/23 18:01:53 UTC

[6/8] git commit: [#6531] ticket:413 Remove github username from project name

[#6531]  ticket:413 Remove github username from project name


Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/9bf4f01d
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/9bf4f01d
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/9bf4f01d

Branch: refs/heads/tv/6531
Commit: 9bf4f01dfbd67e818d50c95f31024184f23b2a94
Parents: 5d63159
Author: Yuriy Arhipov <yu...@yandex.ru>
Authored: Thu Aug 22 15:22:55 2013 +0400
Committer: Tim Van Steenburgh <tv...@gmail.com>
Committed: Fri Aug 23 14:14:36 2013 +0000

----------------------------------------------------------------------
 ForgeImporters/forgeimporters/github/project.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/9bf4f01d/ForgeImporters/forgeimporters/github/project.py
----------------------------------------------------------------------
diff --git a/ForgeImporters/forgeimporters/github/project.py b/ForgeImporters/forgeimporters/github/project.py
index 4af2bdf..58485a7 100644
--- a/ForgeImporters/forgeimporters/github/project.py
+++ b/ForgeImporters/forgeimporters/github/project.py
@@ -45,7 +45,8 @@ class GitHubProjectImporter(base.ProjectImporter):
 
     def after_project_create(self, project, **kw):
         project.set_tool_data('github', project_name=project.name)
-        tasks.import_project_info.post(project.name)
+        project_name = '%s/%s' % (kw['user_name'], kw['project_name'])
+        tasks.import_project_info.post(project_name)
 
     @with_trailing_slash
     @expose(index_template)
@@ -56,7 +57,6 @@ class GitHubProjectImporter(base.ProjectImporter):
     @expose()
     @validate(process_validator)
     def process(self, **kw):
-        kw['project_name'] = '%s/%s' % (kw['user_name'], kw['project_name'])
         kw['tools'] = ''
         return super(self.__class__, self).process(**kw)