Open TomVincentUK opened 2 years ago
I don't really know my way around the code in this repo, but it looks like the default branch name "master" is hardcoded in the publishRepository()
function here:
https://github.com/atom/github/blob/master/lib/views/create-dialog.js#L49-L55
Prerequisites
Description
When creating a new git repository via the built in Atom GUI, the default branch name is
master
, even though my default git branch name (init.defaultbranch
) ismain
when invoking git from a terminal.Steps to Reproduce
Create repository
buttonCreate detached commit
buttonExpected behavior:
The branch created should be named to match either
init.defaultbranch
from the user'sgitconfig
, or tomain
(to match the default behaviour for new github repositories).Actual behavior:
The default branch is named
master
Reproduces how often:
100%
Versions
Windows 10
Additional Information
My Stack Overflow post on this topic: issue was reproduced on Ubuntu by other user