log contents after cache pull and fix some scenarios with duplicate secrets
parent
30410eaaac
commit
a28bf4fc3a
|
|
@ -1,37 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
if [ "$LEFTHOOK" = "0" ]; then
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -t 1 ] ; then
|
|
||||||
exec < /dev/tty ; # <- enables interactive shell
|
|
||||||
fi
|
|
||||||
|
|
||||||
dir="$(git rev-parse --show-toplevel)"
|
|
||||||
|
|
||||||
call_lefthook()
|
|
||||||
{
|
|
||||||
if lefthook.exe -h >/dev/null 2>&1
|
|
||||||
then
|
|
||||||
eval lefthook.exe $@
|
|
||||||
elif test -f "$dir/node_modules/@arkweid/lefthook/bin/lefthook.exe"
|
|
||||||
then
|
|
||||||
eval "$dir/node_modules/@arkweid/lefthook/bin/lefthook.exe $@"
|
|
||||||
elif bundle exec lefthook -h >/dev/null 2>&1
|
|
||||||
then
|
|
||||||
bundle exec lefthook $@
|
|
||||||
elif npx @arkweid/lefthook -h >/dev/null 2>&1
|
|
||||||
then
|
|
||||||
npx @arkweid/lefthook $@
|
|
||||||
elif yarn lefthook -h >/dev/null 2>&1
|
|
||||||
then
|
|
||||||
yarn lefthook $@
|
|
||||||
else
|
|
||||||
echo "Can't find lefthook in PATH"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
call_lefthook "run pre-commit $@"
|
|
||||||
|
|
@ -1,37 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
if [ "$LEFTHOOK" = "0" ]; then
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -t 1 ] ; then
|
|
||||||
exec < /dev/tty ; # <- enables interactive shell
|
|
||||||
fi
|
|
||||||
|
|
||||||
dir="$(git rev-parse --show-toplevel)"
|
|
||||||
|
|
||||||
call_lefthook()
|
|
||||||
{
|
|
||||||
if lefthook.exe -h >/dev/null 2>&1
|
|
||||||
then
|
|
||||||
eval lefthook.exe $@
|
|
||||||
elif test -f "$dir/node_modules/@arkweid/lefthook/bin/lefthook.exe"
|
|
||||||
then
|
|
||||||
eval "$dir/node_modules/@arkweid/lefthook/bin/lefthook.exe $@"
|
|
||||||
elif bundle exec lefthook -h >/dev/null 2>&1
|
|
||||||
then
|
|
||||||
bundle exec lefthook $@
|
|
||||||
elif npx @arkweid/lefthook -h >/dev/null 2>&1
|
|
||||||
then
|
|
||||||
npx @arkweid/lefthook $@
|
|
||||||
elif yarn lefthook -h >/dev/null 2>&1
|
|
||||||
then
|
|
||||||
yarn lefthook $@
|
|
||||||
else
|
|
||||||
echo "Can't find lefthook in PATH"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
call_lefthook "run pre-push $@"
|
|
||||||
|
|
@ -1,39 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
if [ "$LEFTHOOK" = "0" ]; then
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -t 1 ] ; then
|
|
||||||
exec < /dev/tty ; # <- enables interactive shell
|
|
||||||
fi
|
|
||||||
|
|
||||||
dir="$(git rev-parse --show-toplevel)"
|
|
||||||
|
|
||||||
call_lefthook()
|
|
||||||
{
|
|
||||||
if lefthook.exe -h >/dev/null 2>&1
|
|
||||||
then
|
|
||||||
eval lefthook.exe $@
|
|
||||||
elif test -f "$dir/node_modules/@arkweid/lefthook/bin/lefthook.exe"
|
|
||||||
then
|
|
||||||
eval "$dir/node_modules/@arkweid/lefthook/bin/lefthook.exe $@"
|
|
||||||
elif bundle exec lefthook -h >/dev/null 2>&1
|
|
||||||
then
|
|
||||||
bundle exec lefthook $@
|
|
||||||
elif npx @arkweid/lefthook -h >/dev/null 2>&1
|
|
||||||
then
|
|
||||||
npx @arkweid/lefthook $@
|
|
||||||
elif yarn lefthook -h >/dev/null 2>&1
|
|
||||||
then
|
|
||||||
yarn lefthook $@
|
|
||||||
else
|
|
||||||
echo "Can't find lefthook in PATH"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
# lefthook_version: 4ec0fb0fa0acc4d74fc40aaee49039c0
|
|
||||||
|
|
||||||
call_lefthook "install"
|
|
||||||
|
|
||||||
call_lefthook "run prepare-commit-msg $@"
|
|
||||||
Loading…
Reference in New Issue