incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tvansteenbu...@apache.org
Subject [12/42] git commit: [#4691] Fixed IndexError in get_path
Date Tue, 05 Feb 2013 20:23:35 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/0e77a202
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/0e77a202
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/0e77a202

Branch: refs/heads/master
Commit: 0e77a202c7777535b71f975bd96a58e4d98c3da0
Parents: 6cf078d
Author: Cory Johns <johnsca@geek.net>
Authored: Wed Dec 5 21:53:24 2012 +0000
Committer: Tim Van Steenburgh <tvansteenburgh@gmail.com>
Committed: Tue Feb 5 20:22:50 2013 +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/0e77a202/Allura/allura/model/repo.py
----------------------------------------------------------------------
diff --git a/Allura/allura/model/repo.py b/Allura/allura/model/repo.py
index 3d456b1..8eb23d9 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