Files
git-hooks/hooks/pre-receive
Joel Brobecker 6c66db746b Stop adding gnatpython to the PATH used by the hooks
This makes sure that we no longer force the use of this version
of Python if it happens to be available on the machine where
the hooks are being run. Using gnatpython is no longer desirable
since it does not support Python 3.x.

Change-Id: I0505e455e3319b78502acbc79c359b79ca555b92
TN: U530-006
2021-10-19 13:18:00 -07:00

9 lines
342 B
Bash
Executable File

#! /usr/bin/env bash
#
# The "pre-receive" hook is the first hook to be executed when handling
# a push from a client. It takes a list of references being updated
# from stdin. A non-zero status code causes the entire push request
# to be rejected, meaning that none of the references get updated.
python -u `dirname $0`/pre_receive.py "$@"