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

Version Path
smartcloud-0.0.135 lib/smartcloud/templates/dotsmartcloud/grids/grid-runner/pre-receive
smartcloud-0.0.134 lib/smartcloud/templates/dotsmartcloud/grids/grid-runner/pre-receive
smartcloud-0.0.133 lib/smartcloud/templates/dotsmartcloud/grids/grid-runner/pre-receive
smartcloud-0.0.132 lib/smartcloud/templates/dotsmartcloud/grids/grid-runner/pre-receive
smartcloud-0.0.131 lib/smartcloud/templates/dotsmartcloud/grids/grid-runner/pre-receive
smartcloud-0.0.130 lib/smartcloud/templates/dotsmartcloud/grids/grid-runner/pre-receive
smartcloud-0.0.129 lib/smartcloud/templates/dotsmartcloud/grids/grid-runner/pre-receive
smartcloud-0.0.128 lib/smartcloud/templates/dotsmartcloud/grids/grid-runner/pre-receive
smartcloud-0.0.127 lib/smartcloud/templates/dotsmartcloud/grids/grid-runner/pre-receive
smartcloud-0.0.126 lib/smartcloud/templates/dotsmartcloud/grids/grid-runner/pre-receive
smartcloud-0.0.125 lib/smartcloud/templates/dotsmartcloud/grids/grid-runner/pre-receive
smartcloud-0.0.124 lib/smartcloud/templates/dotsmartcloud/grids/grid-runner/pre-receive
smartcloud-0.0.123 lib/smartcloud/templates/dotsmartcloud/grids/grid-runner/pre-receive
smartcloud-0.0.122 lib/smartcloud/templates/dotsmartcloud/grids/grid-runner/pre-receive
smartcloud-0.0.121 lib/smartcloud/templates/dotsmartcloud/grids/grid-runner/pre-receive
smartcloud-0.0.120 lib/smartcloud/templates/dotsmartcloud/grids/grid-runner/pre-receive
smartcloud-0.0.119 lib/smartcloud/templates/dotsmartcloud/grids/grid-runner/pre-receive
smartcloud-0.0.118 lib/smartcloud/templates/dotsmartcloud/grids/grid-runner/pre-receive
smartcloud-0.0.117 lib/smartcloud/templates/dotsmartcloud/grids/grid-runner/pre-receive
smartcloud-0.0.116 lib/smartcloud/templates/dotsmartcloud/grids/grid-runner/pre-receive