GunnarFarneback / LocalRegistry.jl

Create and maintain local registries for Julia packages.
Other
222 stars 22 forks source link

Allow creation of registries with default branches other than `master` #54

Closed jonniedie closed 1 year ago

jonniedie commented 2 years ago

This line is hard-coded to use master, but it is becoming more popular to have default branches other than master. Is there a way to get the default branch name and use that?

GunnarFarneback commented 2 years ago

The easy workaround is obviously not to use push = true in the call and do the push to your branch of choice yourself.

As for getting the default branch name I remember having trouble finding a nice solution in the past, but it could be that I didn't look hard enough.