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 Git show history regression. #6594

Merged
merged 1 commit into from
Oct 23, 2023

Conversation

mbien
Copy link
Member

@mbien mbien commented Oct 19, 2023

It appears RevWalk can create 24 flags, LogCommand could create 25 and
the history view would fail. This tries to maintain the limit of 24.

It is not clear why this worked in past, since the limit was there
before too. (my guess: the limit is now enforced instead of quietly ignored?)

fixes #6592

It appears RevWalk can create 24 flags, LogCommand could create 25 and
the history view would fail. This tries to maintain the limit of 24.

It is not clear why this worked in past, since the limit was there
before too.
@mbien mbien added Regression This used to work! git [ci] enable versioning job ci:dev-build [ci] produce a dev-build zip artifact (7 days expiration, see link on workflow summary page) labels Oct 19, 2023
@mbien mbien added this to the NB20 milestone Oct 19, 2023
@mbien mbien linked an issue Oct 19, 2023 that may be closed by this pull request
@neilcsmith-net
Copy link
Member

Looks good!

The Javadoc explains why this worked before - "Any flags beyond 24 are offered only if the implementation has extra free space within its internal storage." Horrible - should have been a hard fail!

At least one flag, possibly another, have been added between the versions we're using.

Copy link
Member

@neilcsmith-net neilcsmith-net left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested. All seems to be working again. Thanks!

@neilcsmith-net neilcsmith-net merged commit 85b6356 into apache:delivery Oct 23, 2023
33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci:dev-build [ci] produce a dev-build zip artifact (7 days expiration, see link on workflow summary page) git [ci] enable versioning job Regression This used to work!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Viewing git history can throw an exception with new JGit
2 participants