1
0
mirror of synced 2026-01-12 00:42:56 +00:00
Interlisp.medley/scripts/post-checkout
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

17 lines
370 B
Bash
Executable File

#!/bin/bash
# Get the parameters
previous_head=$1
new_head=$2
is_branch_checkout=$3
# Print some info
echo "Checkout complete!"
# echo "Previous HEAD: $previous_head"
# echo "New HEAD: $new_head"
# echo "Branch checkout: $is_branch_checkout"
if [[ "$is_branch_checkout" == "1" ]]; then
find . -name "*.~[1-9]*~" -exec ./scripts/find-orphaned-versions.sh {} \;
fi