summaryrefslogtreecommitdiff
path: root/git/test/test_repo.py
diff options
context:
space:
mode:
authorKostis Anagnostopoulos <ankostis@gmail.com>2016-10-14 16:43:52 +0200
committerKostis Anagnostopoulos <ankostis@gmail.com>2016-10-14 17:43:18 +0200
commit3b1cfcc629e856b1384b811b8cf30b92a1e34fe1 (patch)
tree92d3d7b5a03b1626ae9aa01db0dafcd6837cd34f /git/test/test_repo.py
parent57d053792d1cde6f97526d28abfae4928a61e20f (diff)
downloadgitpython-3b1cfcc629e856b1384b811b8cf30b92a1e34fe1.tar.gz
cygwin, #533: Allow '/cygdrive/c/' paths on repo init
- Cygwin TCs failing: - PY2: err: 13, fail: 2 - PY3: err: 12, fail: 2
Diffstat (limited to 'git/test/test_repo.py')
-rw-r--r--git/test/test_repo.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/git/test/test_repo.py b/git/test/test_repo.py
index a0a6a5b0..314201ea 100644
--- a/git/test/test_repo.py
+++ b/git/test/test_repo.py
@@ -50,7 +50,7 @@ from git.test.lib import (
assert_true,
raises
)
-from git.util import HIDE_WINDOWS_KNOWN_ERRORS
+from git.util import HIDE_WINDOWS_KNOWN_ERRORS, cygpath
from git.test.lib import with_rw_directory
from git.util import join_path_native, rmtree, rmfile
from gitdb.util import bin_to_hex
@@ -913,6 +913,8 @@ class TestRepo(TestBase):
rw_master = self.rorepo.clone(join_path_native(rw_dir, 'master_repo'))
rw_master.git.checkout('HEAD~10')
worktree_path = join_path_native(rw_dir, 'worktree_repo')
+ if Git.is_cygwin():
+ worktree_path = cygpath(worktree_path)
try:
rw_master.git.worktree('add', worktree_path, 'master')
except Exception as ex: