mirror of
https://github.com/openfaas/faas.git
synced 2025-06-19 04:26:35 +00:00
Vendoring with Glide and delete function handler
This commit is contained in:
18
gateway/vendor/github.com/docker/distribution/project/hooks/configure-hooks.sh
generated
vendored
Executable file
18
gateway/vendor/github.com/docker/distribution/project/hooks/configure-hooks.sh
generated
vendored
Executable file
@ -0,0 +1,18 @@
|
||||
#!/bin/sh
|
||||
|
||||
cd $(dirname $0)
|
||||
|
||||
REPO_ROOT=$(git rev-parse --show-toplevel)
|
||||
RESOLVE_REPO_ROOT_STATUS=$?
|
||||
if [ "$RESOLVE_REPO_ROOT_STATUS" -ne "0" ]; then
|
||||
echo -e "Unable to resolve repository root. Error:\n$REPO_ROOT" > /dev/stderr
|
||||
exit $RESOLVE_REPO_ROOT_STATUS
|
||||
fi
|
||||
|
||||
set -e
|
||||
set -x
|
||||
|
||||
# Just in case the directory doesn't exist
|
||||
mkdir -p $REPO_ROOT/.git/hooks
|
||||
|
||||
ln -f -s $(pwd)/pre-commit $REPO_ROOT/.git/hooks/pre-commit
|
Reference in New Issue
Block a user