Skip to content

Explicitly set initial branch for tests#216

Merged
creswick merged 1 commit into
awslabs:masterfrom
sparr:master_branch
Sep 20, 2022
Merged

Explicitly set initial branch for tests#216
creswick merged 1 commit into
awslabs:masterfrom
sparr:master_branch

Conversation

@sparr
Copy link
Copy Markdown
Contributor

@sparr sparr commented Sep 14, 2022

Description of changes:

Add --initial-branch=master to git init in the test repo setup. Without this, tests will encounter errors and fail when run in an environment with a different default initial branch name, such as the recently popular main.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@sparr
Copy link
Copy Markdown
Contributor Author

sparr commented Sep 20, 2022

I chose to make the smallest possible change here. It might be desirable to make a larger change to a different branch name, and update the relevant tests to honor that.

@creswick creswick merged commit 99d01d5 into awslabs:master Sep 20, 2022
@sparr sparr deleted the master_branch branch September 20, 2022 23:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants