Hooks - Commits not included on push a new branch
Created by: ghost
The commits array of the post commit hook is empty when pushing a new branch.
I tested it with requestb.in and this is what I receive from the github post:
{ "after": "60af5c4d32bec715d3369866eb159b95a6fa18a2", "before": "0000000000000000000000000000000000000000", "commits": [], "ref": "refs/heads/bugfix/123456_margin_list", "repository": { "description": null, "homepage": "gitlab.mywebsite.net/myproject", "name": "myproject", "url": "gitlab.mywebsite.net/myproject" }, "total_commits_count": 0, "user_id": 6, "user_name": "Valerio" }
How to reproduce:
checkout a new branch modify a file commit the changes locally push the branch to the origin