mirror of https://github.com/ansible/ansible.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
c0e0550bce
* 🐛 Make integration tests compatible w/ modern Git This patch makes use of the `init.defaultBranch` setting to unify the test across new and old Git versions since one defaults to `master` and the other uses `main` for the default branch. Where possible, it uses the `HEAD` committish to avoid having to normalize the branch name. The change fixes the following integration tests: * `ansible-galaxy` * `ansible-galaxy-collection-scm` (recursive collection) * `git` * 🐛Replace `git-symbolic-ref` with a repo template This custom Git repository template emulates the `init.defaultBranch` setting on Git versions below 2.28. Ref: https://superuser.com/a/1559582. Other workarounds mentioned there, like invoking `git symbolic-ref HEAD refs/heads/main` after each `git init` turned out to have mysterious side effects that break the tests in surprising ways. * 🎨 Make Git integration test non-destructive This patch makes use of the `$HOME` environment variable to trick Git into using a user-global config generated in the temporary directory. |
2 years ago | |
---|---|---|
.. | ||
ambiguous-ref.yml | ||
archive.yml | 3 years ago | |
change-repo-url.yml | ||
checkout-new-tag.yml | ||
depth.yml | 2 years ago | |
forcefully-fetch-tag.yml | 2 years ago | |
formats.yml | ||
gpg-verification.yml | 2 years ago | |
localmods.yml | 2 years ago | |
main.yml | 2 years ago | |
missing_hostkey.yml | 2 years ago | |
missing_hostkey_acceptnew.yml | 2 years ago | |
no-destination.yml | ||
reset-origin.yml | 2 years ago | |
separate-git-dir.yml | ||
setup-local-repos.yml | 2 years ago | |
setup.yml | 2 years ago | |
single-branch.yml | 2 years ago | |
specific-revision.yml | 2 years ago | |
submodules.yml | 3 years ago |