geordi icon indicating copy to clipboard operation
geordi copied to clipboard

Don't assume the default branch is named `master`

Open nhasselmeyer opened this issue 4 months ago • 1 comments

A lot of commands in geordi still assume that the default git branch is named master, which is slightly outdated.

From grepping through the project, the affected commands are at least

  • geordi security_update
  • geordi branch -m (the long form of the argument should also be aliased as --from-main)
  • geordi deploy

As this makes the mentioned commands less useful or unusable in newer projects, these commands should check git config init.defaultBranch instead of using master.

nhasselmeyer avatar Oct 02 '24 16:10 nhasselmeyer