Skip to content

Commit

Permalink
Add --always to git describe command
Browse files Browse the repository at this point in the history
This will at least provide the SHA1 in case there is no tag info for some
reason.  This seems to be the case with GitHub Actions recently.
  • Loading branch information
bartlettroscoe committed Jul 26, 2023
1 parent 30312ca commit 5d6e826
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tribits/doc/utils/gen_doc_utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function generate_git_version_file {
echo
echo "Generating git version"
echo
git describe --match="$_TRIBITS_TAG_PREFIX*" > TribitsGitVersion.txt || \
git describe --always --match="$_TRIBITS_TAG_PREFIX*" > TribitsGitVersion.txt || \
echo "$_TRIBITS_TAG_PREFIX.{Unknown version}" > TribitsGitVersion.txt
else
echo "$_TRIBITS_TAG_PREFIX.{Unknown version}" > TribitsGitVersion.txt
Expand Down

0 comments on commit 5d6e826

Please sign in to comment.