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

Pre-push handles only the first branch if multiple branches is pushed with "git push --all" #1940

Closed
kim-groenborg-nielsen opened this issue Jun 12, 2021 · 1 comment
Labels

Comments

@kim-groenborg-nielsen
Copy link

When I have multiple unpushed branches and I want to push all with "git push --all", then it is only the first branch that is parsed to the pre-push plugin.

I think it can be solved by returning Optional[List[argparse.Namespace]] from _pre_push_ns method in hook_impl.py and then loop through the list in hook_impl method.

@asottile
Copy link
Member

this is a duplicate of #1908 -- unfortunately multiple branches isn't really solvable

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

No branches or pull requests

2 participants