summaryrefslogtreecommitdiff
path: root/lib/git/objects/tree.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2009-11-05 17:59:30 +0100
committerSebastian Thiel <byronimo@gmail.com>2009-11-05 17:59:30 +0100
commit9ee861ae7a7b36a811aa4b5cc8172c5cbd6a945b (patch)
tree5d10bf275b67704b8873f1b0bd3cc4d55469d8a3 /lib/git/objects/tree.py
parent453995f70f93c0071c5f7534f58864414f01cfde (diff)
downloadgitpython-9ee861ae7a7b36a811aa4b5cc8172c5cbd6a945b.tar.gz
Added utilities helping to create proper paths either with slashes or backslashes depending on the operating system
fixed test_refs and test_trees Many more issues remain though, this is just a first backup commit
Diffstat (limited to 'lib/git/objects/tree.py')
-rw-r--r--lib/git/objects/tree.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/git/objects/tree.py b/lib/git/objects/tree.py
index 27bd84d0..f88096b3 100644
--- a/lib/git/objects/tree.py
+++ b/lib/git/objects/tree.py
@@ -9,6 +9,7 @@ import blob
import base
import binascii
import git.diff as diff
+from git.utils import join_path
def sha_to_hex(sha):
"""Takes a string and returns the hex of the sha within"""
@@ -110,7 +111,7 @@ class Tree(base.IndexObject, diff.Diffable):
i += 1
# END while not reached NULL
name = data[ns:i]
- path = os.path.join(self.path, name)
+ path = join_path(self.path, name)
# byte is NULL, get next 20
i += 1