diff options
Diffstat (limited to 'git/test')
-rw-r--r-- | git/test/test_diff.py | 3 | ||||
-rw-r--r-- | git/test/test_submodule.py | 2 |
2 files changed, 3 insertions, 2 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: diff --git a/git/test/test_submodule.py b/git/test/test_submodule.py index 9db4f9c9..da304944 100644 --- a/git/test/test_submodule.py +++ b/git/test/test_submodule.py @@ -705,7 +705,7 @@ class TestSubmodule(TestBase): fp = osp.join(smm.working_tree_dir, 'empty-file') with open(fp, 'w'): pass - smm.git.add(fp) + smm.git.add(Git.polish_url(fp)) smm.git.commit(m="new file added") # submodules are retrieved from the current commit's tree, therefore we can't really get a new submodule |