allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From john...@apache.org
Subject git commit: [#4691] Fixed IndexError in get_path
Date Wed, 05 Dec 2012 21:53:33 GMT
Updated Branches:
  refs/heads/cj/4691 4c4d94bcc -> 1ce4bd57e


[#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/1ce4bd57
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/1ce4bd57
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/1ce4bd57

Branch: refs/heads/cj/4691
Commit: 1ce4bd57e4ee8704e2cfce342ae6fef072a2f09e
Parents: 4c4d94b
Author: Cory Johns <johnsca@geek.net>
Authored: Wed Dec 5 21:53:24 2012 +0000
Committer: Cory Johns <johnsca@geek.net>
Committed: Wed Dec 5 21:53:24 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/1ce4bd57/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