plasmabio / tljh-repo2docker

Plugin for The Littlest JupyterHub to build multiple user environments with repo2docker
BSD 3-Clause "New" or "Revised" License
60 stars 15 forks source link

Default branch name in repo #43

Closed pierrepo closed 2 years ago

pierrepo commented 3 years ago

GitHub recently changed default branch name from master to main.

The default branch name taken into account by tljh-repo2docker is master. Could we possibly try / look for master or main as default branch name?

jtpio commented 3 years ago

There was a similar discussion in the BinderHub repo: https://github.com/jupyterhub/binderhub/pull/1170 It could be interesting to follow the same approach (there might be more hints by following linked issues and PRs).

But maybe it would also be fine to simply default to main for tljh-repo2docker.

jtpio commented 3 years ago

But maybe it would also be fine to simply default to main for tljh-repo2docker.

Or with HEAD: https://github.com/jupyterhub/binderhub/pull/1186

pierrepo commented 3 years ago

Woh this looks very clever!