git.samba.org
/
jelmer
/
dulwich.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
37165f9
)
Translate Windows path separators to slashes.
author
Jelmer Vernooij
<jelmer@jelmer.uk>
Sat, 15 Jul 2017 18:32:03 +0000
(18:32 +0000)
committer
Jelmer Vernooij
<jelmer@jelmer.uk>
Sat, 15 Jul 2017 18:32:03 +0000
(18:32 +0000)
dulwich/ignore.py
patch
|
blob
|
history
diff --git
a/dulwich/ignore.py
b/dulwich/ignore.py
index e67a4e9641e64190939023833a10fb716213fbcc..862aa96562098436b450b2adb8464a21b33c6abf 100644
(file)
--- a/
dulwich/ignore.py
+++ b/
dulwich/ignore.py
@@
-278,6
+278,8
@@
class IgnoreFilterManager(object):
if os.path.isabs(path):
path = os.path.relpath(path, self._top_path)
filters = [(0, f) for f in self._global_filters]
+ if os.path.sep != '/':
+ path = path.replace(os.path.sep, '/')
parts = path.split('/')
for i in range(len(parts)+1):
dirname = '/'.join(parts[:i])