Repository navigation
Conversation
Initialize the bare remote and both clones on a dedicated test branch so the setup no longer depends on init.defaultBranch=master in contributor git configuration. AI disclosure: this contribution was prepared with AI assistance and reviewed against the reported JGit setup path. Signed-off-by: NginxL <8777777+NginxL@users.noreply.github.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #653.
AheadBehindTestnow initializes the bare remote on an explicittestbranch and uses the same branch for both clones and the local tracking configuration. The test no longer depends on a contributor'sinit.defaultBranch=mastersetting.Checks
masterreferences inAheadBehindTest.javawere replaced by one branch constant.--initial-branch=test, initial commit pushed, second clone created ontest, and pull succeeded.git diff --checkandgit diff --cached --checkpassed.Gaps
mvnexecutable, and installing a JDK/Maven is outside this batch's tooling limits. Cached Maven dependencies alone cannot execute the test.AheadBehindTestcases are therefore left to CI; the usedGit.init().setInitialBranch(...)API matches the fix direction discussed in AheadBehindTest relies on defaultBranch=master in .gitconfig #653.AI disclosure: this contribution was prepared with AI assistance and reviewed against the test setup and issue reproduction. The commit includes a DCO
Signed-off-bytrailer.