fix(core): stop repository discovery at nearest marker (#39714)
This commit is contained in:
parent
ce7a7e4e23
commit
9d55b223bb
4 changed files with 48 additions and 21 deletions
|
|
@ -201,7 +201,7 @@ const layer = Layer.effect(
|
|||
locks.withLock(repository.gitDirectory)(effect)
|
||||
|
||||
const discover = Effect.fn("Git.repo.discover")(function* (input: AbsolutePath) {
|
||||
const dotgit = yield* fs.up({ targets: [".git"], start: input }).pipe(
|
||||
const dotgit = yield* fs.up({ targets: [".git"], start: input, mode: "first" }).pipe(
|
||||
Effect.map((matches) => matches[0]),
|
||||
Effect.catch(() => Effect.succeed(undefined)),
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue