| Summary: | GitTagHandler broken by API change in JGit | ||
|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | John Arthorne <john.arthorne> |
| Component: | Git | Assignee: | John Arthorne <john.arthorne> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | critical | ||
| Priority: | P3 | CC: | tomasz.zarna |
| Version: | 0.4 | ||
| Target Milestone: | 0.5 M1 | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
I have pushed a fix for this but I would like Tomasz to verify it: http://git.eclipse.org/c/orion/org.eclipse.orion.server.git/commit/?id=d3ad9ac2a16694d3c440cd13b9cfcbefc59591cd Looks good, thanks for fixing this John. For the record, it was caused by bug 360650. |
JGit changed the API signature of TagCommand.call(). It used to return a RevTag but now returns a Ref. This caused a compile error in Orion's GitTagHandlerV1.java. [javac] 154. ERROR in /opt/public/eclipse/e4/orion/I201204082230/plugins/org.eclipse. er/git/servlets/GitTagHandlerV1.java (at line 135) [javac] return git.tag().setObjectId(revCommit).setName(tagName).call(); [javac] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [javac] Type mismatch: cannot convert from Ref to RevTag