incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From john...@apache.org
Subject [3/21] git commit: [#4691] Fixed IndexError in get_path
Date Fri, 07 Dec 2012 16:11:48 GMT
[#4691] Fixed IndexError in get_path

Signed-off-by: Cory Johns <johnsca@geek.net>


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

Branch: refs/heads/cj/4691
Commit: 2e0d597a9aa7c8da8d8a883f019f5572f5a8ab89
Parents: 4915f0b
Author: Cory Johns <johnsca@geek.net>
Authored: Wed Dec 5 21:53:24 2012 +0000
Committer: Cory Johns <johnsca@geek.net>
Committed: Fri Dec 7 16:11:27 2012 +0000

----------------------------------------------------------------------
 Allura/allura/model/repo.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/2e0d597a/Allura/allura/model/repo.py
----------------------------------------------------------------------
diff --git a/Allura/allura/model/repo.py b/Allura/allura/model/repo.py
index 6ab590a..11e78b7 100644
--- a/Allura/allura/model/repo.py
+++ b/Allura/allura/model/repo.py
@@ -343,7 +343,7 @@ class Commit(RepoObject):
         return copied
 
     def get_path(self, path):
-        if path[0] == '/': path = path[1:]
+        path = path.lstrip('/')
         parts = path.split('/')
         cur = self.tree
         for part in parts:


Mime
View raw message