Files
tbd-station-14/BuildChecker/hooks/post-checkout
War Pigeon d3731395b6 Make git hooks work in git worktrees (#40038)
Make hooks work in worktrees and cleanup hooks
2025-09-03 01:01:43 +02:00

14 lines
290 B
Bash
Executable File

#!/bin/bash
gitroot=$(git rev-parse --show-toplevel)
cd "$gitroot/BuildChecker" || exit
if [[ $(uname) == MINGW* || $(uname) == CYGWIN* ]]; then
# Windows
py -3 git_helper.py --quiet
else
# Not Windows, so probably some other Unix thing.
python3 git_helper.py --quiet
fi