clib icon indicating copy to clipboard operation
clib copied to clipboard

can't assume master branch any more?

Open jkroso opened this issue 3 years ago • 3 comments

Now that github is encouraging people to call their primary branch "main" instead of "master" it probably makes sense to default to main or master rather than just master

jkroso avatar Aug 19 '21 10:08 jkroso

I had this thought when the made the master->main switch. IMO the best solution would be to lookup the repository's default branch rather than assuming anything.

stephenmathieson avatar Aug 19 '21 15:08 stephenmathieson

Now that github is encouraging people to call their primary branch "main" instead of "master" it probably makes sense to default to main or master rather than just master Where do they do that?

It's bad practice to change a default branch. People that have already cloned the repository will not be able to pull the latest changes after the rename. You would actively break other peoples installs.

dko1905 avatar Mar 20 '22 10:03 dko1905

Where do they do that?

When you create a new repository, the default branch is main automatically (it used to be master).

It's bad practice to change a default branch. People that have already cloned the repository will not be able to pull the latest changes after the rename. You would actively break other peoples installs.

I'm not sure how/why this is relevant. We're discussing which branch we default to when installing a package (when no version is specified).

stephenmathieson avatar Mar 22 '22 14:03 stephenmathieson