forked from lix-project/lix
Fix tests on systems with a non-master git defaultBranch #1
Loading…
Reference in a new issue
No description provided.
Delete branch "fix-tests-without-master"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
When the git default branch is not set to master the
installcheck
test suite fails. This patch adjusts the tests to use the current default branch instead of master.Reproduction
Setup
init.defaultBranch
tomain
just test --suite=installcheck
Expected result
All tests pass
Actual result
Some tests fail
Alternative fixes
We could also make sure to explicitly name the default branch
master
when runninggit init
in the tests.getHome
fabc9f29b8ApplyConfigOptions
through config parsing 5fc6fcb310~/
paths in config settings 690f07272egetCwd
742303dc3agetHome
" into main 0dc486a5bfstd::string operator+
9d8f433246diff-hook
no longer needs to be an absolute path b7b1b9723fstd::string operator+
" into main 644176a631getCwd
" into main f5ae72d445Alt+Left
/Alt+Right
df0137226d--arg
isn't a valid Nix identifier 80202e3ca3overlays.default
eccbe9586aoverlays.default
" into main 31954b5136builtins.fetchGit
from 2.3 04daff94e3builtins.fetchGit
from 2.3" into main 289e7a6b5aView command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.