Skip to content

Access to the stdin lines as described by Git #28

Open
@dualcyclone

Description

@dualcyclone

Would be really useful if we could get hold of the actual input used when running pre-push as described here:

http://git-scm.com/docs/githooks#_pre_push

...and used in action in the sample here:

https://github.com/git/git/blob/master/templates/hooks--pre-push.sample

Seems git itself takes control of the stdin; I've had a look at least, and cannot seem to access this information cleanly, if at all.

Would certainly be useful to ascertain the actual branch being pushed, as it would be possible for a user to push a branch that is different to their current active branch.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions