Skip to content
Snippets Groups Projects
Commit b5e562ea authored by Tomáš Oberhuber's avatar Tomáš Oberhuber
Browse files

Fixed Documenation/build script to work with git older than 2.22.

parent 74c653f1
No related branches found
No related tags found
No related merge requests found
...@@ -32,7 +32,9 @@ rm -rf ./html/ ...@@ -32,7 +32,9 @@ rm -rf ./html/
# Assemble environment variables which are used in the Doxyfile # Assemble environment variables which are used in the Doxyfile
if [[ "$CI_COMMIT_REF_NAME" == "" ]]; then if [[ "$CI_COMMIT_REF_NAME" == "" ]]; then
_branch=$(git branch --show-current) # The following works only with newer versions of git, not in 2.19.1 for example
#_branch=$(git branch --show-current)
_branch=$(git rev-parse --abbrev-ref HEAD)
else else
_branch="$CI_COMMIT_REF_NAME" _branch="$CI_COMMIT_REF_NAME"
fi fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment