summaryrefslogtreecommitdiff
path: root/git/util.py
diff options
context:
space:
mode:
authorKostis Anagnostopoulos <ankostis@gmail.com>2016-10-14 18:21:17 +0200
committerKostis Anagnostopoulos <ankostis@gmail.com>2016-10-16 02:45:55 +0200
commita2d248bb8362808121f6b6abfd316d83b65afa79 (patch)
tree6cd5ae879aef067dc2c914b86fdc66d9e6e45069 /git/util.py
parent3b1cfcc629e856b1384b811b8cf30b92a1e34fe1 (diff)
downloadgitpython-a2d248bb8362808121f6b6abfd316d83b65afa79.tar.gz
cygwin, #533: polish abs-paths in `git add` commands
+ Modify TCs - no main-code changes. + FIXed: + `TestSubmodule.test_git_submodules_and_add_sm_with_new_commit()` + TestDiff.test_diff_with_staged_file() - Cygwin TCs failing: - PY2: err: 12, fail: 2 - PY3: err: 11, fail: 2
Diffstat (limited to 'git/util.py')
-rw-r--r--git/util.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/git/util.py b/git/util.py
index 9668f7b3..992937fb 100644
--- a/git/util.py
+++ b/git/util.py
@@ -264,6 +264,7 @@ _cygpath_parsers = (
def cygpath(path):
+ """Use :meth:`git.cmd.Git.polish_url()` instead, that works on any environment."""
if not path.startswith(('/cygdrive', '//')):
for regex, parser, recurse in _cygpath_parsers:
match = regex.match(path)