apache / mynewt-newt

An OS to build, deploy and securely manage billions of devices
https://mynewt.apache.org/
Apache License 2.0
117 stars 96 forks source link

Allow working on repos that lack a "master" branch #435

Closed utzig closed 3 years ago

utzig commented 3 years ago

Add a new key option branch: that can be configured for git/github downloaders, so a user can override the default of "master", and newt is gonna look for the yaml files on the given branch, eg:

repository.my_development_repo:
    type: git
    url: git@github.com:my_org/my_development_repo.git
    branch: dev
    vers: 0-dev

This will clone the repo using "dev" as the default branch.