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/28 16:35:13 UTC

[32/50] 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/44762cbc
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/44762cbc
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/44762cbc

Branch: refs/heads/tv/6526
Commit: 44762cbc2a021ac36fdde1bbee3f04e67785fd5f
Parents: 69db59c
Author: Yuriy Arhipov <yu...@yandex.ru>
Authored: Thu Aug 22 15:22:55 2013 +0400
Committer: Cory Johns <cj...@slashdotmedia.com>
Committed: Mon Aug 26 17:19:57 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/44762cbc/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)