[Koha-devel] IMPORTANT: Git branch master is now main
Magnus Enger
magnus at libriotech.no
Mon Apr 22 08:47:47 CEST 2024
Kia ora!
Thanks for the heads up!
Den 19.04.2024 16:41, skrev Fischer, Katrin via Koha-devel:
> Please note that this change doesn’t only affect the Koha repository,
> but also our side project and tool repositories. In your local
> repositories you will want to rename the local branch to main and then
> set it to track main in the upstream repository:
>
> git config --global init.defaultBranch main
>
> git branch --move master main
>
> git branch –u origin/main
>
> git pull
I did the above, but got this:
~/code/kohaclone (master)$ git config --global init.defaultBranch main
~/code/kohaclone (master)$ git branch --move master main
~/code/kohaclone (main)$ git branch –u origin/main
fatal: Not a valid object name: 'origin/main'.
~/code/kohaclone (main)$ git pull
remote: Enumerating objects: 667, done.
remote: Counting objects: 100% (667/667), done.
remote: Compressing objects: 100% (236/236), done.
remote: Total 545 (delta 364), reused 435 (delta 289), pack-reused 0
Receiving objects: 100% (545/545), 132.56 KiB | 161.00 KiB/s, done.
Resolving deltas: 100% (364/364), completed with 104 local objects.
From https://git.koha-community.org/Koha-community/Koha
* [new branch] main -> origin/main
Your configuration specifies to merge with the ref 'refs/heads/master'
from the remote, but no such ref was fetched.
I had this in .git/config:
[branch "main"]
remote = origin
merge = refs/heads/main
And had to change it to this, to make it work:
[branch "main"]
remote = origin
merge = refs/heads/master
Best regards,
Magnus
More information about the Koha-devel
mailing list