[jbosstools-issues] [JBoss JIRA] (JBIDE-14647) investigate safe replacement for org.eclipse.jgit.internal.storage.file.FileRepository

Andre Dietisheim (JIRA) jira-events at lists.jboss.org
Mon May 27 06:31:06 EDT 2013


    [ https://issues.jboss.org/browse/JBIDE-14647?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12777112#comment-12777112 ] 

Andre Dietisheim commented on JBIDE-14647:
------------------------------------------

I was pointed to FileRepositoryBuilder to create a FileRepository:

{quote}
For creating 'org.eclipse.jgit.lib.Repository's that happen to be instances of FileRepository, you can use the public FileRepositoryBuilder:

https://github.com/eclipse/jgit/blob/v3.0.0.201305080800-m7/org.eclipse.jgit/src/org/eclipse/jgit/storage/file/FileRepositoryBuilder.java#L91-L112
{quote}
                
> investigate safe replacement for org.eclipse.jgit.internal.storage.file.FileRepository
> --------------------------------------------------------------------------------------
>
>                 Key: JBIDE-14647
>                 URL: https://issues.jboss.org/browse/JBIDE-14647
>             Project: Tools (JBoss Tools)
>          Issue Type: Task
>          Components: openshift
>    Affects Versions: 4.1.0.Beta1
>            Reporter: Andre Dietisheim
>            Assignee: Andre Dietisheim
>             Fix For: 4.1.0.Beta2
>
>
> In org.jboss.tools.openshift.egit.test we have a class TestRepository that we use to test our EGit utils. This class is using *org.eclipse.jgit.internal.storage.file.FileRepository* which is marked as internal, not publicly exported. We should look into a replacement since using it is not safe.
> I mailed jgit-dev on the 27th of May:
> {quote}
> we heavily use egit/jgit in our OpenShift tooling. We have our own set of tests and in these we use org.eclipse.jgit.internal.storage.file.FileRepository to check our commit- and push-facilites work right.
> Unfortunately org.eclipse.jgit.internal.storage.file.FileRepository is marked as internal and using it is therefore not safe/recommended. Can you please export this class publicly or point us to a public replacement? 
> {quote}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jbosstools-issues mailing list