Skip to content

Consider git-based guard of project activation #1426

@MischaPanch

Description

@MischaPanch

When using --project-from-cwd a project is only activated if an associated git repo is identified. The same logic does not apply to activate_project in general, meaning through that path a projet can be activated and registered in the home dir, project subdirectories etc. This can have serious downsides, even though it can be considered a usage error. The message on project activation in hooks makes such usage errors more probable.

We can consider adding guards against that, similar to the logic in --project-from-cwd

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions