Sha256: 09b83f7a877c3c236a3ef14ea938a21e35594dfc9e822ef05dc1cb43c2d56cb5
Contents?: true
Size: 521 Bytes
Versions: 104
Compression:
Stored size: 521 Bytes
Contents
#!/bin/sh # oldrev, newrev, refname are a feature of the way in which Git executes the pre-receive hook. # See https://www.kernel.org/pub/software/scm/git/docs/githooks.html while read oldrev newrev refname; do if [ $(git rev-parse --is-bare-repository) = true ]; then REPOSITORY_BASENAME=$(basename "$PWD") REPOSITORY_BASENAME=${REPOSITORY_BASENAME%.git} else REPOSITORY_BASENAME=$(basename $(readlink -nf "$PWD"/..)) fi runner prereceive $REPOSITORY_BASENAME $REMOTE_USER $oldrev $newrev $refname done
Version data entries
104 entries across 104 versions & 1 rubygems