diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2017-02-25 11:27:09 +0100 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2017-02-25 11:28:24 +0100 |
commit | 416daa0d11d6146e00131cf668998656186aef6a (patch) | |
tree | cb8f5c30a1034de61e101f5b09b2801a7f24b450 /git/refs/symbolic.py | |
parent | 2ede752333a851ee6ad9ec2260a0fb3e4f3c1b0b (diff) | |
download | gitpython-416daa0d11d6146e00131cf668998656186aef6a.tar.gz |
fix(refs): don't assume linux path separator
Instead, work with os.sep.
Fixes #586
Diffstat (limited to 'git/refs/symbolic.py')
-rw-r--r-- | git/refs/symbolic.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/git/refs/symbolic.py b/git/refs/symbolic.py index 3c6b78e5..22b7c53e 100644 --- a/git/refs/symbolic.py +++ b/git/refs/symbolic.py @@ -574,7 +574,7 @@ class SymbolicReference(object): # walk loose refs # Currently we do not follow links for root, dirs, files in os.walk(join_path_native(repo.git_dir, common_path)): - if 'refs/' not in root: # skip non-refs subfolders + if 'refs' not in root.split(os.sep): # skip non-refs subfolders refs_id = [d for d in dirs if d == 'refs'] if refs_id: dirs[0:] = ['refs'] |