The primary driver behind this is to create main branches for GitHub repositories, instead of master.
As it stands go-git is hardcoded to make a master branch. I have created go-git/go-git#269 to see if a fix for this would be appropriate & welcome upstream. Failing that we should be able to workaround that by using the lower level initialization functions, or even by removing the master symref and creating a different one after calling Init().
Looking further ahead, for GitHub specifically, we could use the GitHub API to check what the actual default branch name will be (see #57).
/cc @ezzatron
The primary driver behind this is to create
mainbranches for GitHub repositories, instead ofmaster.As it stands
go-gitis hardcoded to make amasterbranch. I have created go-git/go-git#269 to see if a fix for this would be appropriate & welcome upstream. Failing that we should be able to workaround that by using the lower level initialization functions, or even by removing themastersymref and creating a different one after callingInit().Looking further ahead, for GitHub specifically, we could use the GitHub API to check what the actual default branch name will be (see #57).
/cc @ezzatron