diff options
author | Kostis Anagnostopoulos <ankostis@gmail.com> | 2016-10-14 18:21:17 +0200 |
---|---|---|
committer | Kostis Anagnostopoulos <ankostis@gmail.com> | 2016-10-16 02:45:55 +0200 |
commit | a2d248bb8362808121f6b6abfd316d83b65afa79 (patch) | |
tree | 6cd5ae879aef067dc2c914b86fdc66d9e6e45069 /git/test/test_diff.py | |
parent | 3b1cfcc629e856b1384b811b8cf30b92a1e34fe1 (diff) | |
download | gitpython-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/test/test_diff.py')
-rw-r--r-- | git/test/test_diff.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/git/test/test_diff.py b/git/test/test_diff.py index d34d84e3..d5f5b721 100644 --- a/git/test/test_diff.py +++ b/git/test/test_diff.py @@ -25,6 +25,7 @@ from git import ( NULL_TREE, ) import ddt +from git.cmd import Git @ddt.ddt @@ -56,7 +57,7 @@ class TestDiff(TestBase): fp = os.path.join(rw_dir, 'hello.txt') with open(fp, 'w') as fs: fs.write("hello world") - r.git.add(fp) + r.git.add(Git.polish_url(fp)) r.git.commit(message="init") with open(fp, 'w') as fs: |