Jim Downie
11/27/2025, 1:23 PMmaster to main πmashehu
11/27/2025, 1:25 PMJames Fellows Yates
11/27/2025, 1:25 PMgit config?!!?James Fellows Yates
11/27/2025, 1:25 PMJim Downie
11/27/2025, 1:26 PMTEMPLATE branch (where it seems to be set to master), or in the branch where I run pipelines sync (where it is set to main)?mashehu
11/27/2025, 1:26 PMJim Downie
11/27/2025, 1:27 PMinit.defaultbranch=mainmashehu
11/27/2025, 1:27 PMJim Downie
11/27/2025, 1:30 PMstr(git.config.GitConfigParser().get_value("init", "defaultBranch")) or "master"
Should that read defaultbranch? Or is my git config wrong heremashehu
11/27/2025, 1:32 PMJim Downie
11/27/2025, 1:33 PMdefaultBranch still displays as defaultbranch in git config listJames Fellows Yates
11/27/2025, 1:34 PMJim Downie
11/27/2025, 1:34 PM.git/config has:
[init]
defaultBranch = mainmashehu
11/27/2025, 1:35 PMnf-core p create -n testpipeline -d "This pipeline is for testing" -a "Testing McTestface" what is the default branch in that new pipeline?James Fellows Yates
11/27/2025, 1:36 PMJim Downie
11/27/2025, 1:36 PMmasterJames Fellows Yates
11/27/2025, 1:36 PMmain but locally linting wants to see masterJim Downie
11/27/2025, 1:37 PMJim Downie
11/27/2025, 1:37 PMdefaultBranch set in the local .git/config fileJim Downie
11/27/2025, 1:37 PMJames Fellows Yates
11/27/2025, 1:37 PMJim Downie
11/27/2025, 1:39 PMJim Downie
11/27/2025, 1:39 PMmashehu
11/27/2025, 1:40 PMnf-core --verbose p sync and grep for Could not read init.defaultBranchmashehu
11/27/2025, 1:40 PMmasterJim Downie
11/27/2025, 1:44 PMmashehu
11/27/2025, 1:45 PMJim Downie
11/27/2025, 1:45 PMJim Downie
11/27/2025, 1:45 PMgrep -i defaultBranch ../outJim Downie
11/27/2025, 1:50 PMfile:/Library/Developer/CommandLineTools/usr/share/git-core/gitconfig init.defaultbranch=mainJim Downie
11/27/2025, 1:50 PMgit init in a blank directory, I get a mainmashehu
11/27/2025, 1:51 PMJim Downie
11/27/2025, 1:53 PMgit config set init.defaultBranch main
nf-core --verbose p sync &> ../out
Gives a TEMPLATE branch with
defaultBranch = 'master'
in the nextflow.config fileJim Downie
11/27/2025, 1:55 PMnextflow.config or .nf-core.yml) rather than trying to pull this from the user's local git config? Because that might conflict with what the pipeline is actually usingmashehu
11/27/2025, 1:55 PMmashehu
11/27/2025, 1:55 PMJim Downie
11/27/2025, 1:59 PMmashehu
11/27/2025, 2:38 PMJim Downie
11/27/2025, 3:23 PMnextflow.config?mashehu
11/27/2025, 3:23 PMmashehu
11/27/2025, 3:24 PMdev)Matthieu Muffato
11/27/2025, 4:03 PM.nf-core.yml setting for this ? I remember facing the master vs main issue when upgrading from template v2.4, and I think my workaround for this (+ all the other changes that had come up in nf-core) was to create a .nf-core.yml file with a key somewhere that essentially declared main as the default branch.