-
Notifications
You must be signed in to change notification settings - Fork 96
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
openRepo from a sub directory #64
Comments
At least initially, I think I have the same response to both of your questions. Let me know if you have further thoughts. It seems unlikely that it doesn't behave like JGit, since OpenOp directly calls JGit's |
I did not find a 'OpenCommand' class on the Jgit sources.
JGit offers better solution to open a Git repository, see https://wiki.eclipse.org/JGit/User_Guide#Porcelain_API
I think using this would offer better ways to find and open a git repo, than the sole 'open' command. Since Egit guys advocates the hierarchy I presented above for the git repositories (i.e. avoid .git inside the eclipse project, for 'refresh'/'Build workspace' performances), it would be nice to get access to the git repo from anywhere inside the directory tree. |
I wasn't aware of those |
cool, thanks |
Can you try 1.3.0-milestone.1 to see if that resolves your issue? (call |
Hi, thanks for the quick implementation. I'll try milestone 2 on Monday and keep you posted on 63, 64 and 65 |
Works like a charm, thanks Andrew :) |
Awesome! |
I sometimes get even if I call Grgit.open() in my gradle plugin. |
Nevermind. It was a conflict between two gradle plug-ins, and one was retrieving the old grgit version |
I have the following git repo structure
GIT_REPO
|----- .git dir
|----- sub-repo (eclipse proj)
If I perform Grgit.open('.') from within the sub-repo, I get an exception saying that the GIT repo cannot be found.
Shouldn't Grgit behave like JGit (and regular C git) on this subject, and walk through the parent directory to detect the Git repository ?
The text was updated successfully, but these errors were encountered: