Sha256: 34b5b306feb7a53736a703955ef861492f68219982ffe258edd51c54f9594bab

Contents?: true

Size: 706 Bytes

Versions: 16

Compression:

Stored size: 706 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 "runner prereceive $REPOSITORY_BASENAME $REMOTE_USER $oldrev $newrev $refname" /home/$(whoami)/.smartcloud/grids/grid-runner/apps/containers/$REPOSITORY_BASENAME/typescript
	if [ "$?" -eq 10 ]; then
		exit 0
	fi
	exit 1
done

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
smartcloud-0.2.0.beta2 lib/smartcloud/templates/dotsmartcloud/grids/grid-runner/pre-receive
smartcloud-0.2.0.beta1 lib/smartcloud/templates/dotsmartcloud/grids/grid-runner/pre-receive
smartcloud-0.1.0 lib/smartcloud/templates/dotsmartcloud/grids/grid-runner/pre-receive
smartcloud-0.1.0.rc4 lib/smartcloud/templates/dotsmartcloud/grids/grid-runner/pre-receive
smartcloud-0.1.0.rc3 lib/smartcloud/templates/dotsmartcloud/grids/grid-runner/pre-receive
smartcloud-0.1.0.rc2 lib/smartcloud/templates/dotsmartcloud/grids/grid-runner/pre-receive
smartcloud-0.1.0.rc1 lib/smartcloud/templates/dotsmartcloud/grids/grid-runner/pre-receive
smartcloud-0.1.0.beta5 lib/smartcloud/templates/dotsmartcloud/grids/grid-runner/pre-receive
smartcloud-0.1.0.beta4 lib/smartcloud/templates/dotsmartcloud/grids/grid-runner/pre-receive
smartcloud-0.1.0.beta3 lib/smartcloud/templates/dotsmartcloud/grids/grid-runner/pre-receive
smartcloud-0.1.0.beta2 lib/smartcloud/templates/dotsmartcloud/grids/grid-runner/pre-receive
smartcloud-0.1.0.beta1 lib/smartcloud/templates/dotsmartcloud/grids/grid-runner/pre-receive
smartcloud-0.0.210 lib/smartcloud/templates/dotsmartcloud/grids/grid-runner/pre-receive
smartcloud-0.0.209 lib/smartcloud/templates/dotsmartcloud/grids/grid-runner/pre-receive
smartcloud-0.0.208 lib/smartcloud/templates/dotsmartcloud/grids/grid-runner/pre-receive
smartcloud-0.0.207 lib/smartcloud/templates/dotsmartcloud/grids/grid-runner/pre-receive