Sha256: cecdfced7722ba36cbca749ca3242b49e5dfa98f87cca49aeca15d302216803d
Contents?: true
Size: 695 Bytes
Versions: 2
Compression:
Stored size: 695 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 script --quiet --return --flush --command "prereceiver prereceive $REPOSITORY_BASENAME $REMOTE_USER $oldrev $newrev $refname" /home/$(whoami)/.smartmachine/apps/containers/$REPOSITORY_BASENAME/typescript if [ "$?" -eq 10 ]; then exit 0 fi exit 1 done
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
smartmachine-0.8.0 | lib/smart_machine/templates/dotsmartmachine/grids/prereceiver/pre-receive |
smartmachine-0.7.0 | lib/smart_machine/templates/dotsmartmachine/grids/prereceiver/pre-receive |