allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jetm...@apache.org
Subject [05/16] allura git commit: [#7999] ticket:855 Allow to specify subprojects as p/proj/sub
Date Wed, 18 Nov 2015 16:06:04 GMT
[#7999] ticket:855 Allow to specify subprojects as p/proj/sub


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

Branch: refs/heads/ib/7999a
Commit: 4c2c2061d75b5a133060cc38c9757f18ad457df5
Parents: d908179
Author: Igor Bondarenko <jetmind2@gmail.com>
Authored: Mon Nov 2 16:15:23 2015 +0200
Committer: Igor Bondarenko <jetmind2@gmail.com>
Committed: Mon Nov 16 14:18:35 2015 +0200

----------------------------------------------------------------------
 Allura/allura/scripts/delete_projects.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/4c2c2061/Allura/allura/scripts/delete_projects.py
----------------------------------------------------------------------
diff --git a/Allura/allura/scripts/delete_projects.py b/Allura/allura/scripts/delete_projects.py
index bef2d80..23b144a 100644
--- a/Allura/allura/scripts/delete_projects.py
+++ b/Allura/allura/scripts/delete_projects.py
@@ -41,7 +41,7 @@ class DeleteProjects(ScriptTask):
 
     @classmethod
     def get_project(cls, proj):
-        n, p = proj.split('/')
+        n, p = proj.split('/', 1)
         n = M.Neighborhood.query.get(url_prefix='/{}/'.format(n))
         if not n:
             log.warn("Can't find neighborhood for %s", proj)


Mime
View raw message