2023-04-12 14:22:17 +02:00
|
|
|
echo "POST-CHECKOUT"
|
2023-04-12 15:59:57 +02:00
|
|
|
echo "PREV-HEAD=$1"
|
|
|
|
echo "CURR-HEAD=$2"
|
|
|
|
echo "BRANCH-CHECKOUT=$3"
|
2023-05-25 14:10:43 +02:00
|
|
|
|
2023-05-25 14:33:48 +02:00
|
|
|
if [ -f /opt/app/tools/atbupdate/checkout_history ]; then
|
|
|
|
readonly repo=$(git rev-parse --show-toplevel)
|
|
|
|
readonly branch=$(git log --graph --all --decorate $2 | head -n 1 | sed -E -e 's/(.*?)(\(.*\))/\2/g')
|
|
|
|
echo "$repo:$branch"
|
|
|
|
fi
|