Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
joehannes opened this issue Feb 8, 2021 · 2 comments

Comments

@joehannes
Copy link

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

@mprinc
Copy link

mprinc commented Nov 23, 2022

Yes, It is the same problem for me with submodules within a git repo. Did you @joehannes find any workaround?

@joehannes
Copy link
Author

Yes, It is the same problem for me with submodules within a git repo. Did you @joehannes find any workaround?

I'm afraid I don't remember for sure, but I think I gave up on this ... sorry :-) @mprinc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants