File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 77from git .exc import WorkTreeRepositoryUnsupported
88from git .objects import Object
99from 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
1111from gitdb .exc import (
1212 BadObject ,
1313 BadName ,
@@ -109,7 +109,9 @@ def find_submodule_git_dir(d: "PathLike") -> Optional["PathLike"]:
109109
110110 if Git .is_cygwin ():
111111 ## 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 )
113115 if not osp .isabs (path ):
114116 path = osp .normpath (osp .join (osp .dirname (d ), path ))
115117 return find_submodule_git_dir (path )
You can’t perform that action at this time.
0 commit comments