Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tnl-dev
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
TNL
tnl-dev
Commits
b5e562ea
There was an error fetching the commit references. Please try again later.
Commit
b5e562ea
authored
5 years ago
by
Tomáš Oberhuber
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Documentation/build
+3
-1
3 additions, 1 deletion
Documentation/build
with
3 additions
and
1 deletion
Documentation/build
+
3
−
1
View file @
b5e562ea
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment