Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow pushing from different branches than "main" or "master" #198

Open
iduuck opened this issue May 30, 2022 · 1 comment
Open

Allow pushing from different branches than "main" or "master" #198

iduuck opened this issue May 30, 2022 · 1 comment

Comments

@iduuck
Copy link

iduuck commented May 30, 2022

I would like to suggest that it would be configurable where to push from for production.
I was recently working on a project, which has a development and a production branch. However, (trying) to deploy with production deploy results in the following:

❯ production deploy
error: src refspec master does not match any
error: failed to push some refs to 'https://git.heroku.com/XXX.git'

While I understand, that this is also a "security" issue, for not pushing wrong branches to production environments, it would be nice to configure, how to push to production.


Lines, where the magic happens: https://github.com/thoughtbot/parity/blob/main/lib/parity/environment.rb#L42-L63

@vfonic
Copy link

vfonic commented May 31, 2022

I get the same error with main branch. 🤷‍♂️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants