From 6ac2ebfb64a9de51929c31929128c54da434064e Mon Sep 17 00:00:00 2001 From: Natanael Arndt Date: Wed, 14 Feb 2024 23:54:21 +0100 Subject: [PATCH] Fix init defaultBranch in task test --- CHANGELOG.md | 1 + Taskfile.yml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index eccdd7b..709bff2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ TODO: add at least one Added, Changed, Deprecated, Removed, Fixed or Security se ### Fixed - Fix `task test` to also have a default project name +- Fix `init.defaultBranch` configuration in `task test` ### Changed diff --git a/Taskfile.yml b/Taskfile.yml index 32291c3..5693b99 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -29,5 +29,5 @@ tasks: - copier copy --vcs-ref {{.TEMPLATE_REVISION}} --defaults -d 'project_name=Test Project' . {{.ONTOLOGY_DIR}} - git init {{.ONTOLOGY_DIR}} - cd {{.ONTOLOGY_DIR}} && git add . - - cd {{.ONTOLOGY_DIR}} && git -c init.defaultBranch main -c user.name="{{.GIT_USER_NAME}}" -c user.email="{{.GIT_USER_EMAIL}}" commit -m "init from template" + - cd {{.ONTOLOGY_DIR}} && git -c init.defaultBranch=main -c user.name="{{.GIT_USER_NAME}}" -c user.email="{{.GIT_USER_EMAIL}}" commit -m "init from template" - cd {{.ONTOLOGY_DIR}} && task ci cd