Make pre_commit also support pre-push book

This commit is contained in:
dongweiming 2015-01-11 22:40:35 +08:00
parent d2b11a0c50
commit 31e95a4958
10 changed files with 233 additions and 47 deletions

View file

@ -0,0 +1,12 @@
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