Skip to content

Cannot setup/init on git-submodule-repo because of non-existent .git/config #360

@joehannes

Description

@joehannes

BUG / Feature-Request

Hi there :-)
Am new to semantic-release-cli, so maybe I'm not getting it, but a quick google led nowhere.

Situation/Reproduce BUG:

Trying to init via semantic-release-cli setup gives:

ERR! semantic-release Could not get repository url. Please create/add the repository.
ERR! semantic-release Error: ENOTDIR: not a directory, open './.git/config'

To reproduce simply try to init semantic-release-cli on a git-submodule dir.
The .git/config doesn't exist since a submodule has a .git file instead of a .git dir.
Example: My .git file contents: gitdir: ../.git/modules/react-fp

It seems to me that basically semantic-release-cli cannot deal with git-submodules.
But I want ... hh

So maybe this is rather a feature-request, though methinks this could be a nice addition to functionality at very low cost.

Cheers, joehannes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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