Skip to content

Conversation

dscho
Copy link
Member

@dscho dscho commented Dec 4, 2020

Quite a few test cases in t5526 were marked with the PREPARE_FOR_MAIN_BRANCH prerequisite, in preparation for changing the fall-back of init.defaultBranch to main. However, in the meantime concerns were raised that I moved too fast on this.

As a consequence, t5526 is largely inactive.

This patch series addresses that by overriding the initial branch names explicitly in t5526, and then removing the no-longer-needed prerequisite. With this, we have full test coverage in t5526 again, no matter how long the effort to rename the default branch name will take.

dscho added 2 commits December 4, 2020 07:50
While at it, use different default branch names for the three different
repositories involved in the test script: this makes it easier to debug
failures, too (otherwise you have to wonder which `master` branch was
meant: the super project's? The submodule's? The nested submodule's?).

Note: this touches code that was originally modified to prepare for
renaming the default branch name to `main`. This patch side-steps that
effort completely by overriding the initial branch name explicitly.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Initially, we started converting this test script in anticipation for
renaming the default branch name to `main`. To that end, we partially
converted it to accommodate for that default branch name, marking the
now-failing test cases with a prereq that was designed to be fulfilled
once the rename was complete.

However, the effort to move to the branch name `main` needs quite a bit
longer, as it was decided that we need a deprecation phase first.

To avoid keeping t5526 in limbo for such a long time, we just made it
independent of the actual default branch name used by Git. Therefore,
that prereq is no longer necessary, and we can drop it.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
@dscho
Copy link
Member Author

dscho commented Dec 4, 2020

/submit

@gitgitgadget
Copy link

gitgitgadget bot commented Dec 4, 2020

Submitted as pull.806.git.1607092462.gitgitgadget@gmail.com

To fetch this version into FETCH_HEAD:

git fetch https://github.com/gitgitgadget/git pr-806/dscho/t5526-and-the-default-branch-name-v1

To fetch this version to local tag pr-806/dscho/t5526-and-the-default-branch-name-v1:

git fetch --no-tags https://github.com/gitgitgadget/git tag pr-806/dscho/t5526-and-the-default-branch-name-v1

@gitgitgadget
Copy link

gitgitgadget bot commented Dec 4, 2020

On the Git mailing list, Junio C Hamano wrote (reply to this):

"Johannes Schindelin via GitGitGadget" <gitgitgadget@gmail.com>
writes:

> This patch series addresses that by overriding the initial branch names
> explicitly in t5526, and then removing the no-longer-needed prerequisite.

Nice.

Will queue; thanks.

@gitgitgadget
Copy link

gitgitgadget bot commented Dec 4, 2020

This branch is now known as js/t5526-with-no-particular-primary-branch-name.

@gitgitgadget
Copy link

gitgitgadget bot commented Dec 4, 2020

This patch series was integrated into seen via git@247d873.

@gitgitgadget gitgitgadget bot added the seen label Dec 4, 2020
@gitgitgadget
Copy link

gitgitgadget bot commented Dec 9, 2020

This patch series was integrated into seen via git@9ec60c2.

@gitgitgadget
Copy link

gitgitgadget bot commented Dec 9, 2020

This patch series was integrated into next via git@b16af94.

@gitgitgadget gitgitgadget bot added the next label Dec 9, 2020
@gitgitgadget
Copy link

gitgitgadget bot commented Dec 14, 2020

This patch series was integrated into seen via git@e63ec2b.

@gitgitgadget
Copy link

gitgitgadget bot commented Dec 14, 2020

This patch series was integrated into seen via git@3fc7fc1.

@gitgitgadget
Copy link

gitgitgadget bot commented Dec 14, 2020

This patch series was integrated into next via git@3fc7fc1.

@gitgitgadget
Copy link

gitgitgadget bot commented Dec 14, 2020

This patch series was integrated into master via git@3fc7fc1.

@gitgitgadget gitgitgadget bot added the master label Dec 14, 2020
@gitgitgadget gitgitgadget bot closed this Dec 14, 2020
@gitgitgadget
Copy link

gitgitgadget bot commented Dec 14, 2020

Closed via 3fc7fc1.

@dscho dscho deleted the t5526-and-the-default-branch-name branch December 15, 2020 18:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant