Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitHub default branch should be main not master #470

Open
zengmao opened this issue Apr 22, 2024 · 2 comments
Open

GitHub default branch should be main not master #470

zengmao opened this issue Apr 22, 2024 · 2 comments

Comments

@zengmao
Copy link

zengmao commented Apr 22, 2024

When generating a new package folder interactively, you need to manually change the default branch from master to main to comply with GitHub's current default (the latter). This needs to be updated.

@gdalle
Copy link
Collaborator

gdalle commented Apr 22, 2024

I think PkgTemplates is doing everything it can on this side:

const DEFAULT_DEFAULT_BRANCH = "main"
"""
Git(;
ignore=String[],
name=nothing,
email=nothing,
branch=LibGit2.getconfig("init.defaultBranch", "$DEFAULT_DEFAULT_BRANCH")
ssh=false,
jl=true,
manifest=false,
gpgsign=false,
)
Creates a Git repository and a `.gitignore` file.

The problem is likely further upstream, maybe libgit2 is still using master as default?

@nsajko
Copy link

nsajko commented May 6, 2024

I always use PkgTemplates via the interactive generate() process. FTR all of my new packages get main instead of master for a long time now. Not that I care.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants