Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

defaultBranchName of 'main' for empty repo #2794

Closed
wants to merge 1 commit into from

Conversation

wesinator
Copy link

@wesinator wesinator commented Nov 27, 2022

Description of the Change

switch defaultBranchName to use main 'main' for an empty / new repo

L54 is kept in for legacy compatibility

This is an incremental fix: ideally it should create the branch name from git config init.defaultBranch

Screenshot or Gif

Applicable Issues

fixes #2755

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

Successfully merging this pull request may close these issues.

Default branch name of new git repositories is master, despite init.defaultbranch settings
1 participant