mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 16:24:40 +04:00
12 lines
324 B
Text
Executable file
12 lines
324 B
Text
Executable file
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
|