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

Fix describe method of JGitRepository #35

Closed
wants to merge 2 commits into from

Conversation

kayhannay
Copy link
Contributor

I have included mavanagaiata 0.7.0 in a project and everything was working fine. Then we switched this project to Java 8. From this day on, mavanagaiata did not find the correct, latest, tag in the branch, but a very old one.

First I thought this is just an issue with Java 8. But after a closer look to the implementation of the describe function, I discovered that the implementation is not complete.
We use many branches in out project. The existing implementation does not follow all branches. In case one commit has two parents, it just follows one of the parents.

With this pull request a new implementation is used, which is based on the RevWalk class.

Use Java 8 for the project. It is required to switch off linting of the
javadoc documentation to get a successful build. Furthermore the
generated plugin does not have any goals. So this commit fixes the
plugin plugin configuration.
The describe implmentation in JGitRepository was missing some details.
With the switch to Java 8 it does not find the correct branch. This is a
new implmentation of the describe function which checks all branches and
should not miss any tag.
@coveralls
Copy link

Coverage Status

Coverage decreased (-61.21%) to 24.73% when pulling 976746b on efalive:#1_fix-describe-method into f8d5624 on koraktor:master.

@koraktor
Copy link
Owner

Sorry for the very late response. I really hate GitHub for not sending mails on newly created issues and PRs. 😞

Would you mind providing your patch as a single commit without the project changes?

@koraktor koraktor self-assigned this Jul 24, 2015
@koraktor koraktor added this to the 0.7.2 milestone Jul 28, 2015
@koraktor koraktor added the bug label Jul 28, 2015
@koraktor
Copy link
Owner

This has been cherry-picked into the 0.7 branch. I’ll try to release version 0.7.2 soon.

@koraktor koraktor closed this Jul 29, 2015
@kayhannay
Copy link
Contributor Author

Sorry, I've been away for a few days. I assume this is done now. Otherwise I could create another pull request.

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

Successfully merging this pull request may close these issues.

None yet

3 participants