JuliaComputing / JuliaHub-Feedback

Public repo for filing JuliaHub issues
6 stars 1 forks source link

Detect `main` vs. `master` branch automatically #85

Closed eschnett closed 3 years ago

eschnett commented 3 years ago

The Register packages page auto-fills the branch name with master. I now have a few repositories where the main branch is main, and there is no master branch. This leads to an error message, and I then have to manually replace master by main.

It would be convenient if this page were to detect the name of the main repository branch automatically.

Alternatively, it could look at the list of previously registered packages, and continue to use the branch name listed there by default.

StefanKarpinski commented 3 years ago

There must be an API for getting the name of the default branch, which we should use.

nkottary commented 3 years ago

This was fixed in JuliaHub 5.1.0