divvun / gut

A Git(Hub) multirepo maintenance tool
6 stars 0 forks source link

Use `main` as branch name for `gut template generate` #178

Closed snomos closed 1 year ago

snomos commented 1 year ago

It presently uses master.

snomos commented 1 year ago

Relevant place in code seems to be this:

https://github.com/divvun/gut/blob/1f468af7d61dc5a52f889838175e719cb4868034/src/commands/template/generate.rs#L86

which uses:

https://docs.rs/git2/latest/git2/struct.Repository.html#method.init

It seems we need to use the opts struct to get what we want.