Sha256: 416d668f5b082eb38966fe1ec61cbe530b0527c5176783305e747ad407879553

Contents?: true

Size: 693 Bytes

Versions: 17

Compression:

Stored size: 693 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)/.smartcloud/apps/containers/$REPOSITORY_BASENAME/typescript
	if [ "$?" -eq 10 ]; then
		exit 0
	fi
	exit 1
done

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
smartcloud-0.6.0 lib/smartcloud/templates/dotsmartcloud/grids/grid-prereceiver/pre-receive
smartcloud-0.5.3 lib/smartcloud/templates/dotsmartcloud/grids/grid-prereceiver/pre-receive
smartcloud-0.5.2 lib/smartcloud/templates/dotsmartcloud/grids/grid-prereceiver/pre-receive
smartcloud-0.5.1 lib/smartcloud/templates/dotsmartcloud/grids/grid-prereceiver/pre-receive
smartcloud-0.5.0 lib/smartcloud/templates/dotsmartcloud/grids/grid-prereceiver/pre-receive
smartcloud-0.4.4 lib/smartcloud/templates/dotsmartcloud/grids/grid-prereceiver/pre-receive
smartcloud-0.4.3 lib/smartcloud/templates/dotsmartcloud/grids/grid-prereceiver/pre-receive
smartcloud-0.4.2 lib/smartcloud/templates/dotsmartcloud/grids/grid-prereceiver/pre-receive
smartcloud-0.4.1 lib/smartcloud/templates/dotsmartcloud/grids/grid-prereceiver/pre-receive
smartcloud-0.3.2 lib/smartcloud/templates/dotsmartcloud/grids/grid-prereceiver/pre-receive
smartcloud-0.3.1 lib/smartcloud/templates/dotsmartcloud/grids/grid-prereceiver/pre-receive
smartcloud-0.3.0 lib/smartcloud/templates/dotsmartcloud/grids/grid-prereceiver/pre-receive
smartcloud-0.2.4 lib/smartcloud/templates/dotsmartcloud/grids/grid-prereceiver/pre-receive
smartcloud-0.2.3 lib/smartcloud/templates/dotsmartcloud/grids/grid-prereceiver/pre-receive
smartcloud-0.2.2 lib/smartcloud/templates/dotsmartcloud/grids/grid-prereceiver/pre-receive
smartcloud-0.2.1 lib/smartcloud/templates/dotsmartcloud/grids/grid-prereceiver/pre-receive
smartcloud-0.2.0 lib/smartcloud/templates/dotsmartcloud/grids/grid-prereceiver/pre-receive