Skip to content

Pre-push local and remote ref (branch name) are unavailable. #1410

@MaicoTimmerman

Description

@MaicoTimmerman

The grammar for a pre-push hook is:

<local ref> SP <local sha1> SP <remote ref> SP <remote sha1> LF

I'd like to use the <local ref> and <remote ref> to add extra conditions for pushing to those branches, like which credentials are active. Current only the sha's are exposed as PRE_COMMIT_FROM_REF and PRE_COMMIT_TO_REF.

Can the refs be exposed as well?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions