File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 7
7
from git .exc import WorkTreeRepositoryUnsupported
8
8
from git .objects import Object
9
9
from git .refs import SymbolicReference
10
- from git .util import hex_to_bin , bin_to_hex , decygpath
10
+ from git .util import hex_to_bin , bin_to_hex , cygpath
11
11
from gitdb .exc import (
12
12
BadObject ,
13
13
BadName ,
@@ -109,7 +109,9 @@ def find_submodule_git_dir(d: "PathLike") -> Optional["PathLike"]:
109
109
110
110
if Git .is_cygwin ():
111
111
## Cygwin creates submodules prefixed with `/cygdrive/...` suffixes.
112
- path = decygpath (path )
112
+ # Cygwin git understands Cygwin paths much better than Windows ones
113
+ # Also the Cygwin tests are assuming Cygwin paths.
114
+ path = cygpath (path )
113
115
if not osp .isabs (path ):
114
116
path = osp .normpath (osp .join (osp .dirname (d ), path ))
115
117
return find_submodule_git_dir (path )
You can’t perform that action at this time.
0 commit comments