Skip to content

findWorkspaceDir detects furthest .git directory in v2  #218

@danielroe

Description

@danielroe

Reproduction

https://github.com/nuxt/ecosystem-ci (before nuxt/ecosystem-ci@31c3164)

Describe the bug

discovered in:

ecosystem-ci (with a .git dir of its own) clones a repo in workspaces/<org>/<repo> and findWorkspaceDir is wrongly adding the ecosystem-ci root as its 'workspace'

Not sure if this is intended behaviour (if that's what's meant by this in #213):

Git directory is looked down similar to lockfile (so we don't wrongly detect sub-modules

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions