Sha256: a02c259e9e6a25e317088fefbfdac1e34348b40c1640c73618de5b57a3495ebb

Contents?: true

Size: 684 Bytes

Versions: 12

Compression:

Stored size: 684 Bytes

Contents

#!/bin/sh
# Installed by the git-story gem

remote="$1"
url="$2"

z40=0000000000000000000000000000000000000000

while read local_ref local_sha remote_ref remote_sha
do
	if [ "$local_sha" = $z40 ]
	then
		# Handle delete
		:
	else
		if [ "$remote_sha" = $z40 ]
		then
			# New branch, examine all commits
			range="$local_sha"
		else
			# Update to existing branch, examine new commits
			range="$remote_sha..$local_sha"
		fi

		# Check for WIP or [TODO] commit
		commit=`git rev-list -n 1 --pretty=%B "$range" | egrep -i 'WIP|\[TODO\]'`
		if [ -n "$commit" -a "$FORCE" != "1" ]
		then
			echo >&2 "Found WIP / [TODO] commit in $local_ref, not pushing"
			exit 1
		fi
	fi
done

exit 0

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
git-story-workflow-1.7.1 lib/git/story/pre-push
git-story-workflow-1.7.0 lib/git/story/pre-push
git-story-workflow-1.6.2 lib/git/story/pre-push
git-story-workflow-1.6.1 lib/git/story/pre-push
git-story-workflow-1.6.0 lib/git/story/pre-push
git-story-workflow-1.5.0 lib/git/story/pre-push
git-story-workflow-1.4.2 lib/git/story/pre-push
git-story-workflow-1.4.1 lib/git/story/pre-push
git-story-workflow-1.4.0 lib/git/story/pre-push
git-story-workflow-1.3.0 lib/git/story/pre-push
git-story-workflow-1.2.0 lib/git/story/pre-push
git-story-workflow-1.1.0 lib/git/story/pre-push