Skip to content

Remove JGit and use only the Git CLI #11072

@mnonnenmacher

Description

@mnonnenmacher

JGit was introduced as it provides a nicer way to interact with Git than running Git CLI commands as external processes. Initially, the plan was that it would at some point completely replace the usage of the Git CLI, but this is prevented by missing support for features like sparse checkout.

The simultaneous use of both Git implementations increases the complexity of the Git plugin and makes it hard to debug issues as both tools need to be understood. This is especially a problem when debugging authentication issues, as both tools use different ways to access credentials.

Therefore, the proposal is to stop using JGit and solely rely on the Git CLI, because it supports all features needed by ORT and because using only one tool would reduce the complexity of the Git implementation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    downloaderAbout the downloader tool

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions