mirror of
https://github.com/AdaCore/git-hooks.git
synced 2026-02-12 12:43:11 -08:00
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
9 lines
342 B
Bash
Executable File
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 "$@"
|