Hi all,
I decided to change my "grahampugh-recipes" repo's default branch from "master" to "main". (This setting is not available to the maintainers of the repos, but I put in an issue and it was kindly changed on my behalf.)
Unfortunately, our collective belief that "autopkg repo-update grahampugh-recipes" would detect that the default branch had changed and switch to it were not borne out. Anyone who already has the repo in their list will remain on the master branch after performing repo-update.
When I mentioned that I wanted to make this change in Slack, there were a couple of other people who said they would like to do it too. So, is this enough of an issue to warrant a code change to handle a change of default branch?
The workaround is easy - just run "autopkg repo-delete grahampugh-recipes" followed by "autopkg repo-add grahampugh-recipes" - but communicating the change is hard.
One suggestion would be for repo-update verb to include a check to see if the current branch is the default branch or not, and spit out a warning if not. That would allow people who are knowingly using a different branch of a repo to do so, while notifying others that they may wish to switch branches.
I'd be interested to hear other people's views and ideas on this.
Cheers
Graham