Skip to content

Commit

Permalink
Fix init defaultBranch in task test
Browse files Browse the repository at this point in the history
  • Loading branch information
white-gecko committed Feb 14, 2024
1 parent f9fe756 commit 6ac2ebf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 6ac2ebf

Please sign in to comment.