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

Git repository added as submodules do not work #734

Open
sirish-bajpai opened this issue Apr 11, 2024 · 1 comment
Open

Git repository added as submodules do not work #734

sirish-bajpai opened this issue Apr 11, 2024 · 1 comment

Comments

@sirish-bajpai
Copy link

If I add a Git repository as a submodule to a parent Git repo using:
git submodule add http://<dependent-repo-url>

then the plugin in dependent-repo fails with exception stack trace:

Failed to open repository, trying to work without it org.eclipse.jgit.errors.RepositoryNotFoundException: repository not found: /<path-to-dependent-repo-dir>
Couldn't perform is legacy DefTagname Repository command on uninitialized repository
Could not resolve current position on uninitialized repository, returning default
Could not resolve current position on uninitialized repository, returning default
Couldn't perform check uncommitted changes command on uninitialized repository
/home/sbajpai/Projects/Carematix/CM-ReportGenerator/chartservice/.git/config: Not a directory
java.nio.file.FileSystemException: /home/sbajpai/Projects/Carematix/CM-ReportGenerator/chartservice/.git/config: Not a directory
        at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:100)
        at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:106)
        at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
        at java.base/sun.nio.fs.UnixFileAttributeViews$Basic.readAttributes(UnixFileAttributeViews.java:55)
.....

Basically in a submodule repo .git is a file with pointer to parent, instead of a directory, causing plugin to fail and assume initial version instead of tagged version.

@bgalek
Copy link
Member

bgalek commented Apr 12, 2024

Hi! Yeah, we don't have native submodule support

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

No branches or pull requests

2 participants