Hi,

Two takeaway from the infra ticket:

1. The default branch name can be set when creating the repository
locally, e.g. `git init -b master` instead of `git init`. I've updated
our docs at [1]

2. There is no API to change the default branch name for a single
repository, so in practice we can't change our 300+ repos from master
to main, for now.

Thanks,
Robert

On Thu, 2021-09-23 at 16:51 +0200, Robert Munteanu wrote:
> On Wed, 2021-09-22 at 11:09 +0200, Robert Munteanu wrote:
> > 
> > +1. Unless someone objects, I'll start a discussion with infra about
> > this. There is no 'default branch name' settings when creating a
> > repository, so we may need to override it each time ...
> > 
> 
> https://issues.apache.org/jira/browse/INFRA-22359
> 
> Thanks,
> Robert
> 

[1]:
https://cwiki.apache.org/confluence/display/SLING/Using+Git+with+Sling

Reply via email to