mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 13:13:44 +01:00
Call pre-commit hook from pre-push script
This commit is contained in:
parent
f021ca2d52
commit
705c1c28c7
@ -27,6 +27,13 @@ ref_is_upstream_branch() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
workdir=$(git rev-parse --show-toplevel)
|
||||||
|
if [ -x "$workdir/.git/hooks/pre-commit" ]; then
|
||||||
|
if ! "$workdir"/.git/hooks/pre-commit; then
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
# shellcheck disable=SC2034
|
# shellcheck disable=SC2034
|
||||||
while read -r local_ref local_sha remote_ref remote_sha
|
while read -r local_ref local_sha remote_ref remote_sha
|
||||||
do
|
do
|
||||||
|
Loading…
Reference in New Issue
Block a user