Skip to content

Commit

Permalink
don't include git commit metadata if we have a version tag (#142)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisfenner committed Mar 3, 2024
1 parent 5f0c19c commit cc5a258
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ if test "${do_gitversion}" == "yes"; then
# Omit the revision if there isn't one (i.e., we are at straight-up Version)
if [ ! -z "${GIT_REVISION}" ]; then
extra_pandoc_options+=" --metadata=revision:${GIT_REVISION}"
elif [ ! -z "${GIT_COMMIT}" ]; then
elif [ -z "${GIT_VERSION}" ]; then
extra_pandoc_options+=" --metadata=revision:${GIT_COMMIT}"
fi

Expand Down

0 comments on commit cc5a258

Please sign in to comment.