mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-17 13:56:32 +00:00
fcf590a86e
macOS doesn't, for instance. Use a shell script to detect which python to run, which is always available on all OSes due to how git is packaged on Windows. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5060>
12 lines
226 B
Bash
Executable file
12 lines
226 B
Bash
Executable file
#!/bin/sh
|
|
|
|
PYTHON="python3"
|
|
if [[ $OS =~ Windows ]]; then
|
|
if type -p py &>/dev/null; then
|
|
PYTHON="py -3"
|
|
elif type -p python &>/dev/null; then
|
|
PYTHON="python"
|
|
fi
|
|
fi
|
|
|
|
$PYTHON "`dirname $0`/pre-commit-python.hook"
|