mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2024-12-29 09:21:19 +00:00
test: use only rev-parse for getting the current branch
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
This commit is contained in:
parent
ccb0344969
commit
ab02d391cb
@ -44,14 +44,10 @@ record() {
|
||||
}
|
||||
|
||||
# save current HEAD.
|
||||
# Note: unfortunately "git branch --show-current" was added only in GIT
|
||||
# version 2.22.
|
||||
GIT_VERSION="$(git --version | sed 's/git version //')"
|
||||
if dpkg --compare-versions "$GIT_VERSION" "gt" "2.22.0"; then
|
||||
HEAD=$(git branch --show-current)
|
||||
else
|
||||
HEAD=$(git rev-parse --abbrev-ref HEAD)
|
||||
fi
|
||||
# Note: this can optionally be updated to
|
||||
# HEAD=$(git branch --show-current)
|
||||
# when using a Git version above 2.22
|
||||
HEAD=$(git rev-parse --abbrev-ref HEAD)
|
||||
|
||||
# get the numbers before this PR for default and full
|
||||
cleanup
|
||||
|
Loading…
Reference in New Issue
Block a user