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?
The grammar for a pre-push hook is:
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 asPRE_COMMIT_FROM_REFandPRE_COMMIT_TO_REF.Can the refs be exposed as well?