git-repo/tests
Fredrik de Groot 6342d56914 Fix tests after "use new main branch"
Tests worked fine if init.defaultBranch main was used,
but failed due to git branch reasons if master was still used.

Since we can only use init.defaultBranch if git version >= 2.28,
I also went with a template dir HEAD main tweak if lower so tests
now pass regardless of client git default branch and version.

Test: Ran tests with ~/.gitconfig:init.defaultBranch=master
Test: Ran tests with ~/.gitconfig:init.defaultBranch=main
Test: Ran tests for both code branches of git require

Change-Id: I49fa1e4ae45b8aec16a093132ee9fa466cbc11ec
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/290404
Tested-by: Fredrik de Groot <fredrik.de.groot@volvocars.com>
Reviewed-by: Mike Frysinger <vapier@google.com>
2020-12-03 07:29:59 +00:00
..
fixtures git_config: add GetInt helper 2020-02-19 23:09:05 +00:00
test_editor.py upload/editor: fix bytes/string confusion 2019-11-16 23:55:30 +00:00
test_git_command.py Use hash for ControlPath instead of full variables 2020-04-15 06:51:22 +00:00
test_git_config.py git_config: add GetInt helper 2020-02-19 23:09:05 +00:00
test_hooks.py Move RepoHook class from project.py file to dedicated file 2020-11-03 22:08:08 +00:00
test_manifest_xml.py manifest: add support for groups in include 2020-11-26 09:13:14 +00:00
test_project.py Fix tests after "use new main branch" 2020-12-03 07:29:59 +00:00
test_subcmds_init.py init: reject unknown args 2020-09-02 07:53:16 +00:00
test_subcmds.py init: reject unknown args 2020-09-02 07:53:16 +00:00
test_wrapper.py Fix tests after "use new main branch" 2020-12-03 07:29:59 +00:00