Closed PhotoNomad0 closed 8 months ago
Notes - testing on MacOS or in Windows:
to configure your system to default to branch name of main:
configure system to default to main branch: git config --global init.defaultBranch main
create a new test repo (if there already is a test folder you will have to delete it):
mkdir test
cd test
touch stuff.txt
git init
git add *
git commit -m "first commit"
now verify that the repo was created with default branch as main: git branch | tail
you can delete the test folder now.
Later - to restore your system to default to branch name of master do: git config --global init.defaultBranch master
@elsylambert - fixes are in ~translationCore 3.5.0 (a0d8658)~ - translationCore 3.5.0 (5951b4e)
For testing, first follow steps above (see Notes - testing on MacOS or in Windows:
) to configure your system to default to main as the branch name.
Check that we can recover broken projects:
cannot be uploaded because there have been changes to the translation of that project on your Door43 account.
Check that new projects are created in master branch:
@elsylambert Don't know how this did not get into QA
Tested in Windows machine with Version 3.5.0 (30831db). Looks good and works as expected.
Story Explanation
User Story
Sometimes new repos are created with default branch main instead of master, and this cause problems since all our apps presume the default branch as being master. This appears to be the outcome of the git app changing to creating new repos with default branch named main.
Changes needed:
when a repo is first initialized with git, pass parameters to make sure it is initialized with master as the default branch:
other changes:
Features / Specifications
Definition of Done
Additional Context
Mockups