Sha256: 4801da09458168767f48eee777141e7aafceb73dd95745b6011ef731b034dae1

Contents?: true

Size: 629 Bytes

Versions: 11

Compression:

Stored size: 629 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 -qfc "runner prereceive $REPOSITORY_BASENAME $REMOTE_USER $oldrev $newrev $refname" /home/$(whoami)/.smartcloud/grids/grid-runner/apps/containers/$REPOSITORY_BASENAME/typescript
done

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
smartcloud-0.0.148 lib/smartcloud/templates/dotsmartcloud/grids/grid-runner/pre-receive
smartcloud-0.0.147 lib/smartcloud/templates/dotsmartcloud/grids/grid-runner/pre-receive
smartcloud-0.0.146 lib/smartcloud/templates/dotsmartcloud/grids/grid-runner/pre-receive
smartcloud-0.0.145 lib/smartcloud/templates/dotsmartcloud/grids/grid-runner/pre-receive
smartcloud-0.0.144 lib/smartcloud/templates/dotsmartcloud/grids/grid-runner/pre-receive
smartcloud-0.0.143 lib/smartcloud/templates/dotsmartcloud/grids/grid-runner/pre-receive
smartcloud-0.0.142 lib/smartcloud/templates/dotsmartcloud/grids/grid-runner/pre-receive
smartcloud-0.0.141 lib/smartcloud/templates/dotsmartcloud/grids/grid-runner/pre-receive
smartcloud-0.0.140 lib/smartcloud/templates/dotsmartcloud/grids/grid-runner/pre-receive
smartcloud-0.0.139 lib/smartcloud/templates/dotsmartcloud/grids/grid-runner/pre-receive
smartcloud-0.0.138 lib/smartcloud/templates/dotsmartcloud/grids/grid-runner/pre-receive