extract branch info
This commit is contained in:
parent
5c89c49f08
commit
346247b88a
@ -3,4 +3,8 @@ echo "PREV-HEAD=$1"
|
||||
echo "CURR-HEAD=$2"
|
||||
echo "BRANCH-CHECKOUT=$3"
|
||||
|
||||
git log --graph --all --decorate $2 | head -n 1
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user