1
0
mirror of synced 2026-04-24 19:40:36 +00:00
Files
Interlisp.medley/scripts/install-repo-checks.sh
Larry Masinter 9f980276bf Add a call to check for orphaned versions after any checkout (#1973)
* Add a call to check for orphaned versions after any checkout

* use == instead of -eq for optional

* Add a scripts/install-repo-checks for things to run after checkout; only this versioning error checked for now
2025-01-25 11:15:27 -08:00

16 lines
330 B
Bash
Executable File

#!/bin/sh
# install checks for repository, meant to run post-checkout
# For now, this just checks for orphaned versions.
rm -f .git/hooks/post-checkout
cp scripts/post-checkout .git/hooks/post-checkout &&
chmod -x .git/hooks/post-checkout &&
echo copy made: &&
ls -l .git/hooks/post-checkout &&
exit 0
exit 1