Commit a8beebca authored by Christopher League's avatar Christopher League
Browse files

pre-push v1

parent 4b4da1fb
#!/bin/sh
# $1 -- Name of the remote to which the push is being done
remote="$1"
# $2 -- URL to which the push is being done
url="$2"
case $remote in
origin)
;;
*)
echo pre-push: nothing to do for $remote
exit 0
esac
# <local ref> <local sha1> <remote ref> <remote sha1>
while read local_ref local_sha remote_ref remote_sha
do
echo pre-push: from $local_ref $local_sha
echo pre-push: to $remote_ref $remote_sha
done
exit 1
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment