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 @@ -289,18 +289,16 @@ export async function fetchRoot(initialCwd: PortablePath) {
289
289
// it may return long paths even when the cwd uses short paths, and we have no
290
290
// way to detect it from Node (not even realpath).
291
291
292
- let match : PortablePath | null = null ;
293
-
294
292
let cwd : PortablePath ;
295
293
let nextCwd = initialCwd ;
296
294
do {
297
295
cwd = nextCwd ;
298
296
if ( await xfs . existsPromise ( ppath . join ( cwd , `.git` as Filename ) ) )
299
- match = cwd ;
297
+ return cwd ;
300
298
nextCwd = ppath . dirname ( cwd ) ;
301
- } while ( match === null && nextCwd !== cwd ) ;
299
+ } while ( nextCwd !== cwd ) ;
302
300
303
- return match ;
301
+ return null ;
304
302
}
305
303
306
304
export async function fetchBase ( root : PortablePath , { baseRefs} : { baseRefs : Array < string > } ) {
You can’t perform that action at this time.
0 commit comments