Files
GS13NG/tools/hooks/install.sh
CitadelStationBot 59fc595ba3 [MIRROR] Fix hook installation on Linux (#5244)
* Merge pull request #35161 from AutomaticFrenzy/patch/hook-install

Fix hook installation on Linux

* Fix hook installation on Linux
2018-02-04 22:21:05 -06:00

13 lines
309 B
Bash
Executable File

#!/bin/bash
shopt -s nullglob
cd "$(dirname "$0")"
for f in *.hook; do
echo Installing hook: ${f%.hook}
cp $f ../../.git/hooks/${f%.hook}
done
for f in *.merge; do
echo Installing merge driver: ${f%.merge}
git config --replace-all merge.${f%.merge}.driver "tools/hooks/$f %P %O %A %B %L"
done
echo "Done"