File tree 2 files changed +12
-5
lines changed
packages/plugin-git/sources
2 files changed +12
-5
lines changed Original file line number Diff line number Diff line change
1
+ releases :
2
+ " @yarnpkg/plugin-git " : patch
3
+
4
+ declined :
5
+ - " @yarnpkg/plugin-essentials"
6
+ - " @yarnpkg/plugin-github"
7
+ - " @yarnpkg/plugin-version"
8
+ - " @yarnpkg/plugin-workspace-tools"
9
+ - " @yarnpkg/cli"
Original file line number Diff line number Diff line change @@ -302,18 +302,16 @@ export async function fetchRoot(initialCwd: PortablePath) {
302
302
// it may return long paths even when the cwd uses short paths, and we have no
303
303
// way to detect it from Node (not even realpath).
304
304
305
- let match : PortablePath | null = null ;
306
-
307
305
let cwd : PortablePath ;
308
306
let nextCwd = initialCwd ;
309
307
do {
310
308
cwd = nextCwd ;
311
309
if ( await xfs . existsPromise ( ppath . join ( cwd , `.git` as Filename ) ) )
312
- match = cwd ;
310
+ return cwd ;
313
311
nextCwd = ppath . dirname ( cwd ) ;
314
- } while ( match === null && nextCwd !== cwd ) ;
312
+ } while ( nextCwd !== cwd ) ;
315
313
316
- return match ;
314
+ return null ;
317
315
}
318
316
319
317
export async function fetchBase ( root : PortablePath , { baseRefs} : { baseRefs : Array < string > } ) {
You can’t perform that action at this time.
0 commit comments