Sha256: 8f4606e3249524feac642466e36494bdd3867a398ae1183bae93f61cec8f3d91

Contents?: true

Size: 705 Bytes

Versions: 18

Compression:

Stored size: 705 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 0 ]; then
		exit 0
	fi
	exit 1
done

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
smartcloud-0.0.206 lib/smartcloud/templates/dotsmartcloud/grids/grid-runner/pre-receive
smartcloud-0.0.205 lib/smartcloud/templates/dotsmartcloud/grids/grid-runner/pre-receive
smartcloud-0.0.204 lib/smartcloud/templates/dotsmartcloud/grids/grid-runner/pre-receive
smartcloud-0.0.203 lib/smartcloud/templates/dotsmartcloud/grids/grid-runner/pre-receive
smartcloud-0.0.202 lib/smartcloud/templates/dotsmartcloud/grids/grid-runner/pre-receive
smartcloud-0.0.201 lib/smartcloud/templates/dotsmartcloud/grids/grid-runner/pre-receive
smartcloud-0.0.200 lib/smartcloud/templates/dotsmartcloud/grids/grid-runner/pre-receive
smartcloud-0.0.199 lib/smartcloud/templates/dotsmartcloud/grids/grid-runner/pre-receive
smartcloud-0.0.198 lib/smartcloud/templates/dotsmartcloud/grids/grid-runner/pre-receive
smartcloud-0.0.197 lib/smartcloud/templates/dotsmartcloud/grids/grid-runner/pre-receive
smartcloud-0.0.196 lib/smartcloud/templates/dotsmartcloud/grids/grid-runner/pre-receive
smartcloud-0.0.195 lib/smartcloud/templates/dotsmartcloud/grids/grid-runner/pre-receive
smartcloud-0.0.194 lib/smartcloud/templates/dotsmartcloud/grids/grid-runner/pre-receive
smartcloud-0.0.193 lib/smartcloud/templates/dotsmartcloud/grids/grid-runner/pre-receive
smartcloud-0.0.192 lib/smartcloud/templates/dotsmartcloud/grids/grid-runner/pre-receive
smartcloud-0.0.191 lib/smartcloud/templates/dotsmartcloud/grids/grid-runner/pre-receive
smartcloud-0.0.190 lib/smartcloud/templates/dotsmartcloud/grids/grid-runner/pre-receive
smartcloud-0.0.189 lib/smartcloud/templates/dotsmartcloud/grids/grid-runner/pre-receive