fortrabbit / craft-copy

Deployment tools for Craft on fortrabbit
https://www.fortrabbit.com
MIT License
73 stars 8 forks source link

Ensure local branch name is not omitted in push #153

Closed pheeque1 closed 1 year ago

pheeque1 commented 1 year ago

When the CodeUpAction is first executed in a git repository with zero commits, it fails because no branch explicitly exists without a git history. It however works when the command is repeated since then a commit has been created.

This PR ensures that the local branch name is always included during a CodeUpAction call.