Files
pre-commit/pre_commit/resources/pre-push-tmpl
2015-10-05 07:17:20 -07:00

15 lines
356 B
Plaintext

z40=0000000000000000000000000000000000000000
while read local_ref local_sha remote_ref remote_sha
do
if [ "$local_sha" != $z40 ]; then
if [ "$remote_sha" = $z40 ];
then
args="run --all-files"
else
args="run --origin $local_sha --source $remote_sha"
fi
fi
done
args="$args --hook-stage push"