File tree 1 file changed +6
-1
lines changed
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -112,12 +112,17 @@ export class ShadowRepo {
112
112
if ( ! this . status || noCache ) {
113
113
try {
114
114
await this . stashIgnoreFile ( ) ;
115
+ const filepaths =
116
+ os . type ( ) === 'Windows_NT'
117
+ ? // iso-git uses posix paths, but packageDirs has already normalized them so we need to convert if windows
118
+ this . packageDirs . map ( ( dir ) => dir . path . split ( path . sep ) . join ( path . posix . sep ) )
119
+ : this . packageDirs . map ( ( dir ) => dir . path ) ;
115
120
// status hasn't been initalized yet
116
121
this . status = await git . statusMatrix ( {
117
122
fs,
118
123
dir : this . projectPath ,
119
124
gitdir : this . gitDir ,
120
- filepaths : this . packageDirs . map ( ( dir ) => dir . path ) ,
125
+ filepaths,
121
126
// filter out hidden files and __tests__ patterns, regardless of gitignore
122
127
filter : ( f ) => ! f . includes ( `${ path . sep } .` ) && ! f . includes ( '__tests__' ) ,
123
128
} ) ;
You can’t perform that action at this time.
0 commit comments