Skip to content

Support Git repositories with SHA-256 objectformat #4917

@stevenschlansker

Description

@stevenschlansker

As Git moves to SHA-256 object ids by default, OpenGrok does not yet support it. Attempting to load such a repository fails like:

Caused by: org.eclipse.jgit.errors.InvalidObjectIdException: Invalid id: ff3bd48b0ed2f325e1b52e5538cdc66e48a8e1fab20397f8bf0ad709ee38ddc2
	at org.eclipse.jgit.lib.ObjectId.fromString(ObjectId.java:220)

First, JGit needs to support the new object id format: eclipse-jgit/jgit#73
After this support lands upstream, OpenGrok should test and support the new SHA-256 format, ideally before it becomes the Git default.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions