Permalink
Browse files

Use os.sep for splitting directories

Signed-off-by: Seth Buntin <seth.buntin@gmail.com>
  • Loading branch information...
1 parent c1d372d commit 273127e89bd714502d2f57e1220e7e0f1811d7fb @hughdbrown hughdbrown committed with Jul 6, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 django_git/utils.py
View
2 django_git/utils.py
@@ -25,7 +25,7 @@ def get_blob(repo, commit, file):
repo = get_repo(repo)
commit = repo.commit(commit)
tree = commit.tree
- for path_seg in file.split('/'):
+ for path_seg in file.split(os.sep):
t = tree.get(path_seg)
if isinstance(t, Tree):
tree = t

0 comments on commit 273127e

Please sign in to comment.