Skip to content
New issue

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

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

Already on GitHub? # to your account

Support submodule status #80

Closed
thogr opened this issue Oct 6, 2015 · 5 comments
Closed

Support submodule status #80

thogr opened this issue Oct 6, 2015 · 5 comments

Comments

@thogr
Copy link

thogr commented Oct 6, 2015

Please take a look at the issue (479048) I have filed jgit.
Is there anything you can do in grgit (or perhaps a work-around) to help me out here?
This is somewhat related to what you are working with. The purpose is to use git sha1 revisions as versions on artifacts. We use submodules to get the dependencies. So instead of doing a full git submodule update, we just retrieve the git sha1 revisions using git submodule status (or perhaps git ls-tree). But we would like to do it in groovy (gradle), not shell script.

@ajoberstar
Copy link
Owner

Unfortunately, nothing is springing to mind. I haven't used submodules a lot personally.

The general goal of Grgit is to provide a better API to JGit from Groovy, so usually when JGit doesn't support anything, Grgit won't either. Just from an initial glance, I would think this would need to wait for JGit to provide a fix.

@ajoberstar
Copy link
Owner

Confirming that the JGit bug is still open as of 10/22/2017.

@childnode
Copy link

alongside any known bugs, it is not possible to use Grgit.open(dir: submodulePath)
codepoints: https://github.com/ajoberstar/grgit/blob/master/src/main/groovy/org/ajoberstar/grgit/operation/OpenOp.groovy#L64

Expected: should work like
Git libModule = Git.open( new F‌ile( workDir, "modules/library" ) );

see also http://www.codeaffine.com/2014/04/16/how-to-manage-git-submodules-with-jgit/

@vivin
Copy link

vivin commented Jul 28, 2018

I've committed a fix for a related bug here. The fix may address the one mentioned by OP as well, but I haven't verified.

@ajoberstar
Copy link
Owner

As is now noted in the readme this plugin is feature frozen. No new features will be added.

@ajoberstar ajoberstar closed this as not planned Won't fix, can't repro, duplicate, stale Oct 5, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

4 participants