armory / dinghy

Pipelines as code for Spinnaker
Apache License 2.0
31 stars 12 forks source link

Default to main if there is no master branch for Stash #181

Open MaddyTennant opened 1 year ago

MaddyTennant commented 1 year ago

We are currently facing an issue when pushing dinghyfile from main in stash, it complains about not finding master branch, would be nice if it looked for main also. I have noticed github has this behaviour already. https://github.com/armory/dinghy/blame/34e05628870ab327a372e343513d06a7ece91e30/pkg/git/stash/push.go#L65C1-L68C2